Submission #51232385
Source Code Expand
#include <bits/stdc++.h> #ifdef LOCAL #include "debug.h" #else #define debug(...) #endif using int64 = long long; using uint = unsigned int; using uint64 = unsigned long long; bool ckmin(auto& a, auto b) { return b < a ? a = b, 1 : 0; } bool ckmax(auto& a, auto b) { return b > a ? a = b, 1 : 0; } using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); vector<int> a; for (;;) { int x; cin >> x; a.push_back(x); if (x == 0) break; } reverse(a.begin(), a.end()); for (int x : a) cout << x << '\n'; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Delimiter |
User | xindubawukong |
Language | C++ 20 (gcc 12.2) |
Score | 150 |
Code Size | 599 Byte |
Status | AC |
Exec Time | 7 ms |
Memory | 3620 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 7 ms | 3416 KiB |
sample_02.txt | AC | 1 ms | 3416 KiB |
sample_03.txt | AC | 1 ms | 3532 KiB |
test_01.txt | AC | 1 ms | 3448 KiB |
test_02.txt | AC | 1 ms | 3412 KiB |
test_03.txt | AC | 1 ms | 3620 KiB |
test_04.txt | AC | 1 ms | 3436 KiB |
test_05.txt | AC | 1 ms | 3408 KiB |
test_06.txt | AC | 1 ms | 3468 KiB |
test_07.txt | AC | 1 ms | 3448 KiB |
test_08.txt | AC | 1 ms | 3448 KiB |
test_09.txt | AC | 1 ms | 3432 KiB |
test_10.txt | AC | 1 ms | 3412 KiB |
test_11.txt | AC | 1 ms | 3332 KiB |
test_12.txt | AC | 1 ms | 3480 KiB |