Submission #88422

#TimeUsernameProblemLanguageResultExecution timeMemory
88422AntonioDakiImena (COCI16_imena)C++14
50 / 50
2 ms760 KiB
#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)

imena.cpp: In function 'int main()':
imena.cpp:10:12: warning: unused variable 'n1' [-Wunused-variable]
     int n, n1 = 0, m = 0, m1 = 0, ok = 1;
            ^~
#Verdict Execution timeMemoryGrader output
Fetching results...