Submission #68422701
Source Code Expand
Copy
#include <stdio.h>int N, L, R;char S[114514];int main(void) {int i;if (scanf("%d%d%d", &N, &L, &R) != 3) return 1;if (scanf("%114512s", S + 1) != 1) return 1;for (i = L; i <= R; i++) {if (S[i] != 'o') {puts("No");return 0;}}puts("Yes");return 0;}
#include <stdio.h> int N, L, R; char S[114514]; int main(void) { int i; if (scanf("%d%d%d", &N, &L, &R) != 3) return 1; if (scanf("%114512s", S + 1) != 1) return 1; for (i = L; i <= R; i++) { if (S[i] != 'o') { puts("No"); return 0; } } puts("Yes"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Vacation Validation |
User | mikecat |
Language | C (gcc 12.2.0) |
Score | 100 |
Code Size | 299 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 1648 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 | 1624 KiB |
random_02.txt | AC | 1 ms | 1624 KiB |
random_03.txt | AC | 1 ms | 1628 KiB |
random_04.txt | AC | 1 ms | 1604 KiB |
random_05.txt | AC | 1 ms | 1628 KiB |
random_06.txt | AC | 1 ms | 1556 KiB |
random_07.txt | AC | 1 ms | 1512 KiB |
random_08.txt | AC | 1 ms | 1536 KiB |
random_09.txt | AC | 1 ms | 1576 KiB |
random_10.txt | AC | 1 ms | 1604 KiB |
random_11.txt | AC | 1 ms | 1564 KiB |
random_12.txt | AC | 1 ms | 1564 KiB |
random_13.txt | AC | 1 ms | 1648 KiB |
random_14.txt | AC | 1 ms | 1504 KiB |
sample_01.txt | AC | 1 ms | 1560 KiB |
sample_02.txt | AC | 1 ms | 1620 KiB |