Submission #496923

# Submission time Handle Problem Language Result Execution time Memory
496923 2021-12-22T06:51:23 Z kappa Kaučuk (COCI21_kaucuk) C++14
50 / 50
1 ms 296 KB
#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 time Memory Grader output
1 Correct 0 ms 268 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 268 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 0 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 0 ms 204 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 0 ms 204 KB Output is correct
12 Correct 0 ms 296 KB Output is correct
13 Correct 1 ms 292 KB Output is correct
14 Correct 0 ms 204 KB Output is correct
15 Correct 0 ms 204 KB Output is correct
16 Correct 1 ms 204 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct