Submission #76664595
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<char> Answer;
vector<vector<int>> data(N, vector<int>(N));
for (int i = 0; i < N; i++){
for (int j = 0; j < N; j++){
cin >> data.at(i).at(j);
}
}
for (int k = 0; k < N; k++){
for(int l = 0; l < data.at(k).at(0); l++){
Answer.at(data.at(k).at(l))++;
}
}
for (int i = 0; i < N; i++){
if (Answer.at(i) == 0){
continue;
}
else{
cout << i + 1 << Answer.at(i) << endl;
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Gift |
| User | Renntann0108 |
| Language | C++23 (Clang 21.1.0) |
| Score | 0 |
| Code Size | 635 Byte |
| Status | RE |
| Exec Time | 101 ms |
| Memory | 3336 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | RE | 99 ms | 3104 KiB |
| 00_sample_01.txt | RE | 96 ms | 3196 KiB |
| 00_sample_02.txt | RE | 96 ms | 3104 KiB |
| 01_random_00.txt | RE | 98 ms | 3200 KiB |
| 01_random_01.txt | RE | 99 ms | 3336 KiB |
| 01_random_02.txt | RE | 98 ms | 3220 KiB |
| 01_random_03.txt | RE | 97 ms | 3180 KiB |
| 01_random_04.txt | RE | 100 ms | 3324 KiB |
| 01_random_05.txt | RE | 100 ms | 3180 KiB |
| 01_random_06.txt | RE | 100 ms | 3336 KiB |
| 01_random_07.txt | RE | 100 ms | 3180 KiB |
| 01_random_08.txt | RE | 99 ms | 3080 KiB |
| 01_random_09.txt | RE | 99 ms | 3192 KiB |
| 01_random_10.txt | RE | 101 ms | 3264 KiB |