Submission #63005282
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;using ll=long long;int main(){ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);string s;cin>>s;for(int i=0;i<s.length();i++){if(s[i]=='2'){cout<<2;}}return 0;}
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(0);cout.tie(0); string s; cin>>s; for(int i=0;i<s.length();i++){ if(s[i]=='2'){ cout<<2; } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 22222 |
User | Mint_Cat |
Language | C++ 17 (gcc 12.2) |
Score | 100 |
Code Size | 298 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3624 KB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:11:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 11 | for(int i=0;i<s.length();i++){ | ~^~~~~~~~~~~
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, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3556 KB |
sample01.txt | AC | 1 ms | 3500 KB |
sample02.txt | AC | 1 ms | 3412 KB |
testcase00.txt | AC | 1 ms | 3348 KB |
testcase01.txt | AC | 1 ms | 3488 KB |
testcase02.txt | AC | 1 ms | 3496 KB |
testcase03.txt | AC | 1 ms | 3492 KB |
testcase04.txt | AC | 1 ms | 3496 KB |
testcase05.txt | AC | 1 ms | 3468 KB |
testcase06.txt | AC | 1 ms | 3480 KB |
testcase07.txt | AC | 1 ms | 3492 KB |
testcase08.txt | AC | 1 ms | 3420 KB |
testcase09.txt | AC | 1 ms | 3484 KB |
testcase10.txt | AC | 1 ms | 3624 KB |
testcase11.txt | AC | 1 ms | 3356 KB |
testcase12.txt | AC | 1 ms | 3500 KB |
testcase13.txt | AC | 1 ms | 3620 KB |
testcase14.txt | AC | 1 ms | 3356 KB |