| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1282594 | stefanneagu | Kaučuk (COCI21_kaucuk) | C++20 | 1 ms | 576 KiB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
int cnt1 = 0, cnt2 = 0, cnt3 = 0;
int t;
cin >> t;
while (t--) {
string tip, s;
cin >> tip >> s;
if (tip == "section") {
cnt2 = cnt3 = 0;
cnt1++;
cout << cnt1 << " " << s << '\n';
} else if (tip == "subsection") {
cnt3 = 0;
cnt2++;
cout << cnt1 << "." << cnt2 << " " << s << '\n';
} else {
cnt3++;
cout << cnt1 << "." << cnt2 << "." << cnt3 << " " << s << '\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... | ||||
