Submission #75969383
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
int main() {
int N; cin >> N;
vector<char> list(N);
bool good = false; bool bad = false;
for (int i = 0; i < N; i++) {
cin >> list.at(i);
if(list.at(i) == 'o') {
good = true;
}
if(list.at(i) == 'x') {
bad = true;
}
}
if (good == true && bad == false) {
cout << "Yes";
} else {
cout << "No";
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Job Interview |
| User | sasakiharuto |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 426 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3648 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_one_00.txt, 01_one_01.txt, 02_yes_00.txt, 02_yes_01.txt, 02_yes_02.txt, 02_yes_03.txt, 03_no_00.txt, 03_no_01.txt, 03_no_02.txt, 03_no_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3616 KiB |
| 00_sample_01.txt | AC | 1 ms | 3464 KiB |
| 00_sample_02.txt | AC | 1 ms | 3464 KiB |
| 00_sample_03.txt | AC | 1 ms | 3648 KiB |
| 01_one_00.txt | AC | 1 ms | 3492 KiB |
| 01_one_01.txt | AC | 1 ms | 3584 KiB |
| 02_yes_00.txt | AC | 1 ms | 3492 KiB |
| 02_yes_01.txt | AC | 1 ms | 3492 KiB |
| 02_yes_02.txt | AC | 1 ms | 3624 KiB |
| 02_yes_03.txt | AC | 1 ms | 3584 KiB |
| 03_no_00.txt | AC | 1 ms | 3496 KiB |
| 03_no_01.txt | AC | 1 ms | 3628 KiB |
| 03_no_02.txt | AC | 1 ms | 3496 KiB |
| 03_no_03.txt | AC | 1 ms | 3644 KiB |