Submission #70070453
Source Code Expand
//#include "atcoder/modint" #pragma GCC optimize("Ofast") #include "atcoder/all" #include <bits/stdc++.h> #include <string> using namespace std; using namespace atcoder; #define int long long template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } //const int MOD =1e9+7; //constexpr int MOD =10; constexpr int MOD =998244353; const long long M1=167772161,M2=469762049,M3=1224736769; //const int MOD =31607; using mint = static_modint<MOD>; //using mint = double; //using mint = modint; ostream& operator << (ostream& ost, const mint& m){ost << m.val();return ost;} istream& operator >> (istream& ost, mint& m){int a;ost >> a;m=a;return ost;} double time_limit = 100.0,start_temp=0.01,end_temp=0.0; std::mt19937 rng(std::random_device{}()); unordered_map<int,int>mp; signed main(){ //ios_base::sync_with_stdio(false); //cin.tie(NULL); string s; cin>>s; for(int i=0;i<s.size();i++)if(i!=s.size()/2){ cout<<s[i]; } cout<<endl; }
Submission Info
Submission Time | |
---|---|
Task | A - ABC -> AC |
User | yatuba |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 1207 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3628 KiB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:31:18: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 31 | for(int i=0;i<s.size();i++)if(i!=s.size()/2){ | ~^~~~~~~~~ Main.cpp:31:36: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 31 | for(int i=0;i<s.size();i++)if(i!=s.size()/2){ | ~^~~~~~~~~~~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3568 KiB |
sample01.txt | AC | 1 ms | 3576 KiB |
sample02.txt | AC | 1 ms | 3512 KiB |
testcase00.txt | AC | 1 ms | 3452 KiB |
testcase01.txt | AC | 1 ms | 3560 KiB |
testcase02.txt | AC | 1 ms | 3572 KiB |
testcase03.txt | AC | 1 ms | 3444 KiB |
testcase04.txt | AC | 1 ms | 3560 KiB |
testcase05.txt | AC | 1 ms | 3592 KiB |
testcase06.txt | AC | 1 ms | 3560 KiB |
testcase07.txt | AC | 1 ms | 3628 KiB |