提出 #67909593


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

void solve() {
	int n, l, r; string s;
	cin >> n >> l >> r >> s;

	for (int i=l-1; i<r; i++) {
		if (s[i] != 'o') {
			cout << "No\n";
			return;
		}
	}
	cout << "Yes\n";
}

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
	int tcs = 1;
	// cin >> tcs;
	while (tcs--) {
		solve();
	}
	return 0;
}

提出情報

提出日時
問題 A - Vacation Validation
ユーザ Wie
言語 C++ 20 (gcc 12.2)
得点 100
コード長 376 Byte
結果 AC
実行時間 1 ms
メモリ 3596 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 16
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
random_01.txt AC 1 ms 3456 KiB
random_02.txt AC 1 ms 3476 KiB
random_03.txt AC 1 ms 3416 KiB
random_04.txt AC 1 ms 3412 KiB
random_05.txt AC 1 ms 3412 KiB
random_06.txt AC 1 ms 3592 KiB
random_07.txt AC 1 ms 3316 KiB
random_08.txt AC 1 ms 3596 KiB
random_09.txt AC 1 ms 3476 KiB
random_10.txt AC 1 ms 3460 KiB
random_11.txt AC 1 ms 3408 KiB
random_12.txt AC 1 ms 3592 KiB
random_13.txt AC 1 ms 3460 KiB
random_14.txt AC 1 ms 3416 KiB
sample_01.txt AC 1 ms 3460 KiB
sample_02.txt AC 1 ms 3408 KiB