Submission #76827274
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
string b;
cin >> a >> b;
vector<string> A(a);
for (int i=0; i<a; i++) {
cin >> A.at(i);
}
int d;
if (b=="A") {
d = 0;
}
else if (b=="B") {
d = 1;
}
else if (b=="C") {
d = 2;
}
else if (b=="D") {
d = 3;
}
else {
d = 4;
}
bool c=false;
for(int i=0; i<a; i++) {
if (A.at(i).at(d) == 'o') {
c = true;
}
}
cout << (c ? "Yes" : "No") << endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Train Reservation |
| User | Kane218 |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 525 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3488 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_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, 02_hand_01.txt, 02_hand_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 1 ms | 3480 KiB |
| 00_sample_02.txt | AC | 1 ms | 3416 KiB |
| 01_random_01.txt | AC | 1 ms | 3432 KiB |
| 01_random_02.txt | AC | 1 ms | 3448 KiB |
| 01_random_03.txt | AC | 1 ms | 3440 KiB |
| 01_random_04.txt | AC | 1 ms | 3488 KiB |
| 01_random_05.txt | AC | 1 ms | 3432 KiB |
| 01_random_06.txt | AC | 1 ms | 3376 KiB |
| 01_random_07.txt | AC | 1 ms | 3416 KiB |
| 01_random_08.txt | AC | 1 ms | 3416 KiB |
| 01_random_09.txt | AC | 1 ms | 3368 KiB |
| 01_random_10.txt | AC | 1 ms | 3488 KiB |
| 02_hand_01.txt | AC | 1 ms | 3408 KiB |
| 02_hand_02.txt | AC | 1 ms | 3440 KiB |