Submission #1015760

#TimeUsernameProblemLanguageResultExecution timeMemory
1015760AliHasanliKaučuk (COCI21_kaucuk)C++17
50 / 50
1 ms436 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...