Submission #57753836
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main(){
int m,n;
cin >> n >> m;
int A;
char B;
int flag[n]={0};
for (int i = 1; i<m+1; i++){
cin >> A >> B;
if (B=='F')
cout << "No\n";
else {
if (flag[A-1]==0){
cout << "Yes\n";
flag[A-1]=1;
}
else
cout << "No\n";
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Taro |
| User | spai006 |
| Language | C++ 20 (gcc 12.2) |
| Score | 200 |
| Code Size | 367 Byte |
| Status | AC |
| Exec Time | 2 ms |
| Memory | 3616 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 1 ms | 3408 KiB |
| 00_sample_02.txt | AC | 1 ms | 3484 KiB |
| 01_test_01.txt | AC | 1 ms | 3532 KiB |
| 01_test_02.txt | AC | 1 ms | 3456 KiB |
| 01_test_03.txt | AC | 1 ms | 3536 KiB |
| 01_test_04.txt | AC | 1 ms | 3448 KiB |
| 01_test_05.txt | AC | 1 ms | 3612 KiB |
| 01_test_06.txt | AC | 1 ms | 3452 KiB |
| 01_test_07.txt | AC | 2 ms | 3488 KiB |
| 01_test_08.txt | AC | 1 ms | 3616 KiB |
| 01_test_09.txt | AC | 1 ms | 3452 KiB |
| 01_test_10.txt | AC | 1 ms | 3536 KiB |
| 01_test_11.txt | AC | 1 ms | 3452 KiB |
| 01_test_12.txt | AC | 1 ms | 3532 KiB |
| 01_test_13.txt | AC | 1 ms | 3532 KiB |
| 01_test_14.txt | AC | 1 ms | 3408 KiB |