| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 674500 | Farhan_HY | Kaučuk (COCI21_kaucuk) | C++14 | 1 ms | 328 KiB | 
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>
#define int long long
#define float double
#define pb push_back
#define F first
#define T int t; cin >> t; while(t--)
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
/// Benzema is the best player in the world
main() {
    IOS
    int x = 0, y = 0, z = 0;
    T {
        string s, ss;
        cin >> s >> ss;
        if (s == "section") x++, y = 0, z = 0;
        else if (s == "subsection") y++, z = 0;
        else {
            z++;
            if (y == 0) y++;
        }
        cout << x;
        if (y) cout << '.' << y;
        if (z) cout << '.' << z;
        cout << ' ' << ss << '\n';
    }
    
}
///use scanf
Compilation message (stderr)
| # | 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... | ||||
