| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1152582 | justin271828 | Trobojnica (COCI19_trobojnica) | C++20 | 0 ms | 320 KiB |
#include <bits/stdc++.h>
using namespace std;
#define l2 long long
int main() {
int n;
cin >> n;
string s;
cin >> s;
int one = 0;
int two = 0;
int three = 0;
for (char c: s) {
if (c == '1') one++;
else if (c == '2') two++;
else three++;
}
one %= 2;
two %= 2;
three %= 2;
if (one == two && two == three) {
cout << "DA\n";
for (int i = 3; i < n; i++) cout << 1 << " " << 2 << " " << 3 << "\n";
}
else cout << "NE";
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... | ||||
