Submission #496923

#TimeUsernameProblemLanguageResultExecution timeMemory
496923kappaKaučuk (COCI21_kaucuk)C++14
50 / 50
1 ms296 KiB
#include <bits/stdc++.h> using namespace std; int n, sec, subsec, subsubsec; string str, veri; int main(){ cin >> n; while(n--){ cin >> str >> veri; switch (str.length()) { case 7: sec++; cout << sec << " " << veri << "\n"; subsec = 0; subsubsec = 0; break; case 10: subsec++; cout << sec << "." << subsec << " " << veri << "\n"; subsubsec = 0; break; case 13: subsubsec++; cout << sec << "." << subsec << "." << subsubsec << " " << veri << "\n"; break; default: break; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...