#include <bits/stdc++.h>
using namespace std;
int q,a,b,c;
int main(){
ios::sync_with_stdio(0);cin.tie(0);
cin>>q;
while(q--){
string s;cin>>s;
if(s.size()==7){
a++;b=0;c=0;
}else if(s.size()==10){
b++;c=0;
}else c++;
cout<<a;
if(b)cout<<"."<<b;
if(c)cout<<"."<<c;
cout<<"\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |