Submission #67917656
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
const int N=3e5+10;
int dx[]={0,1,0,-1},dy[]={1,0,-1,0};
map<int,int> mp;
int n,m,k;
int a[N],b[N];
void slove(){
int l,r;
cin>>n>>l>>r;
string s;
cin>>s;
for(int i=l-1;i<r;i++){
if(s[i]=='x'){cout<<"No"<<endl;return;}
}
cout<<"Yes"<<endl;
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T=1;
// cin>>T;
while(T--){
slove();
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Vacation Validation |
| User | Maikan |
| Language | C++ 20 (gcc 12.2) |
| Score | 100 |
| Code Size | 520 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3520 KiB |
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 | 3428 KiB |
| random_02.txt | AC | 1 ms | 3472 KiB |
| random_03.txt | AC | 1 ms | 3468 KiB |
| random_04.txt | AC | 1 ms | 3388 KiB |
| random_05.txt | AC | 1 ms | 3420 KiB |
| random_06.txt | AC | 1 ms | 3464 KiB |
| random_07.txt | AC | 1 ms | 3436 KiB |
| random_08.txt | AC | 1 ms | 3476 KiB |
| random_09.txt | AC | 1 ms | 3440 KiB |
| random_10.txt | AC | 1 ms | 3420 KiB |
| random_11.txt | AC | 1 ms | 3416 KiB |
| random_12.txt | AC | 1 ms | 3468 KiB |
| random_13.txt | AC | 1 ms | 3324 KiB |
| random_14.txt | AC | 1 ms | 3320 KiB |
| sample_01.txt | AC | 1 ms | 3476 KiB |
| sample_02.txt | AC | 1 ms | 3520 KiB |