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 q,a,b,c;
int main(){
cin>>q;
while(q--){
string s,p;cin>>s>>p;
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<<" "<<p<<"\n";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |