| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1328166 | Zone_zonee | Kaučuk (COCI21_kaucuk) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
while(n--){
string op, s;
cin >> op >> s;
if(op == "section"){
cout << ++a << ' ' << s << '\n';
b = c = 0;
}else if(op == "subsection"){
cout << a << "." << ++b << " " << s << '\n';
c = 0;
}else{
cout << a << "." << b << "." << ++c << " " << s << '\n';
}
}
}| # | 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... | ||||
