提出 #76664595
ソースコード 拡げる
#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;
}
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Gift |
| ユーザ | Renntann0108 |
| 言語 | C++23 (Clang 21.1.0) |
| 得点 | 0 |
| コード長 | 635 Byte |
| 結果 | RE |
| 実行時間 | 101 ms |
| メモリ | 3336 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |