Submission #67915738


Source Code Expand

#include <bits/stdc++.h>
using ll = long long;

const int N = 3e5;

void solve() {
    int n, l, r;
    std::cin >> n >> l >> r;
    std::string s;
    std::cin >> s;
    s = " " + s;
    for (int i = l; i <= r; i++) {
        if (s[i] != 'o') {
            std::cout << "No";
            return;
        }
    }
    std::cout << "Yes";
}

int main() {
    std::ios::sync_with_stdio(false), std::cout.tie(nullptr), std::cin.tie(nullptr);
    int t;
    t = 1;
    while (t--) {
        solve();
    }
    return 0;
}

Submission Info

Submission Time
Task A - Vacation Validation
User mellowsky
Language C++ 20 (gcc 12.2)
Score 100
Code Size 544 Byte
Status AC
Exec Time 1 ms
Memory 3528 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 16
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 3324 KiB
random_02.txt AC 1 ms 3528 KiB
random_03.txt AC 1 ms 3380 KiB
random_04.txt AC 1 ms 3416 KiB
random_05.txt AC 1 ms 3516 KiB
random_06.txt AC 1 ms 3448 KiB
random_07.txt AC 1 ms 3456 KiB
random_08.txt AC 1 ms 3476 KiB
random_09.txt AC 1 ms 3472 KiB
random_10.txt AC 1 ms 3464 KiB
random_11.txt AC 1 ms 3408 KiB
random_12.txt AC 1 ms 3448 KiB
random_13.txt AC 1 ms 3464 KiB
random_14.txt AC 1 ms 3320 KiB
sample_01.txt AC 1 ms 3448 KiB
sample_02.txt AC 1 ms 3456 KiB