# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
88422 | AntonioDaki | Imena (COCI16_imena) | C++14 | 2 ms | 760 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n, n1 = 0, m = 0, m1 = 0, ok = 1;
string s;
cin >> n;
for(int n1 = 0; n1 < n; ++n1){
ok = 1;
m = 0;
while(ok){
cin >> s;
if(s[0] >= 65 and s[0] <= 90) m1 = 1;
for(int i = 0; i < 1000; ++i){
if(s[i] >= 48 and s[i] <= 57) m1 = 0;
if (s[i] == 0) i = 1001;
if(s[i] == 33 or s[i] == 46 or s[i] == 63) ok = 0;
}
if(m1) ++m;
m1 = 0;
}
cout << m << endl;
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |