Submission #67910213
Source Code Expand
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
const int areTests = 0;
void run_test(int testcase) {
int n, l, r, ok = 1;
string a;
cin >> n >> l >> r >> a;
for(int i = l - 1; i <= r - 1; i++)
if(a[i] != 'o') ok = 0;
cout << (ok ? "Yes" : "No");
}
int main() {
ios::sync_with_stdio(0);
#ifndef DUSH1729
cin.tie(0);
#endif
cout << fixed << setprecision(10);
int t = 1;
if(areTests) cin >> t;
for(int i = 1; i <= t; i++) {
run_test(i);
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Vacation Validation |
| User | dush1729 |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 513 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3572 KiB |
Compile Error
Main.cpp: In function ‘void run_test(int)’:
Main.cpp:8:19: warning: unused parameter ‘testcase’ [-Wunused-parameter]
8 | void run_test(int testcase) {
| ~~~~^~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 1 ms | 3432 KiB |
| random_02.txt | AC | 1 ms | 3476 KiB |
| random_03.txt | AC | 1 ms | 3572 KiB |
| random_04.txt | AC | 1 ms | 3364 KiB |
| random_05.txt | AC | 1 ms | 3432 KiB |
| random_06.txt | AC | 1 ms | 3436 KiB |
| random_07.txt | AC | 1 ms | 3504 KiB |
| random_08.txt | AC | 1 ms | 3560 KiB |
| random_09.txt | AC | 1 ms | 3424 KiB |
| random_10.txt | AC | 1 ms | 3484 KiB |
| random_11.txt | AC | 1 ms | 3504 KiB |
| random_12.txt | AC | 1 ms | 3408 KiB |
| random_13.txt | AC | 1 ms | 3432 KiB |
| random_14.txt | AC | 1 ms | 3500 KiB |
| sample_01.txt | AC | 1 ms | 3496 KiB |
| sample_02.txt | AC | 1 ms | 3432 KiB |