Submission #40638683
Source Code Expand
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define y1 y114514
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define all(a) a.begin(), a.end()
typedef pair<int, int> pii;
typedef unsigned long long ull;
typedef long long ll;
const int M = 1000000007;
int n;
string s;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cin >> n >> s;
bool tag1 = false, tag2 = false;
for (int i = 0; i < n; ++i) {
if (s[i] == 'o')
tag1 = true;
else if (s[i] == 'x')
tag2 = true;
}
if (tag1 && !tag2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Job Interview |
| User | chitanda |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 886 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 3632 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 | 7 ms | 3580 KiB |
| 00_sample_01.txt | AC | 2 ms | 3556 KiB |
| 00_sample_02.txt | AC | 2 ms | 3520 KiB |
| 00_sample_03.txt | AC | 2 ms | 3504 KiB |
| 01_one_00.txt | AC | 2 ms | 3464 KiB |
| 01_one_01.txt | AC | 2 ms | 3560 KiB |
| 02_yes_00.txt | AC | 2 ms | 3632 KiB |
| 02_yes_01.txt | AC | 2 ms | 3540 KiB |
| 02_yes_02.txt | AC | 2 ms | 3568 KiB |
| 02_yes_03.txt | AC | 2 ms | 3460 KiB |
| 03_no_00.txt | AC | 2 ms | 3616 KiB |
| 03_no_01.txt | AC | 2 ms | 3484 KiB |
| 03_no_02.txt | AC | 2 ms | 3572 KiB |
| 03_no_03.txt | AC | 2 ms | 3536 KiB |