Submission #21297379
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);string a;cin >> a;a.push_back(a[0]);for(int i = 1; i < a.size(); i++)cout<<a[i];cout<<"\n";return 0;}
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); string a; cin >> a; a.push_back(a[0]); for(int i = 1; i < a.size(); i++)cout<<a[i]; cout<<"\n"; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Rotate |
User | Vliberty |
Language | C++ (GCC 9.2.1) |
Score | 100 |
Code Size | 222 Byte |
Status | AC |
Exec Time | 7 ms |
Memory | 3648 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:9:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 9 | for(int i = 1; i < a.size(); i++)cout<<a[i]; | ~~^~~~~~~~~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | handmade_00.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
handmade_00.txt | AC | 6 ms | 3636 KB |
random_00.txt | AC | 2 ms | 3496 KB |
random_01.txt | AC | 2 ms | 3604 KB |
random_02.txt | AC | 2 ms | 3556 KB |
random_03.txt | AC | 2 ms | 3648 KB |
random_04.txt | AC | 7 ms | 3636 KB |
random_05.txt | AC | 2 ms | 3644 KB |
random_06.txt | AC | 2 ms | 3544 KB |
random_07.txt | AC | 3 ms | 3504 KB |
sample_01.txt | AC | 2 ms | 3560 KB |
sample_02.txt | AC | 2 ms | 3608 KB |