Submission #67913238


Source Code Expand

#include<bits/stdc++.h>
#define int long long

const int inf = 1e9;


using namespace std;


int32_t main(void)
{
	int n , l , r;
	cin >> n >> l >> r;
	string s;
	cin >> s;
	
	
	bool fg = true;
	
	for(int i = l ; i <= r ; i++)
	{
		if(s[i - 1] != 'o')
		{
			fg = false;
			break;
		}
	}
	
	if(fg)
		cout << "Yes\n";
	else
		cout << "No\n";
	
	return 0;
}

Submission Info

Submission Time
Task A - Vacation Validation
User Sarthak_Borse
Language C++ 20 (gcc 12.2)
Score 100
Code Size 389 Byte
Status AC
Exec Time 1 ms
Memory 3516 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 3436 KiB
random_02.txt AC 1 ms 3492 KiB
random_03.txt AC 1 ms 3484 KiB
random_04.txt AC 1 ms 3488 KiB
random_05.txt AC 1 ms 3460 KiB
random_06.txt AC 1 ms 3516 KiB
random_07.txt AC 1 ms 3460 KiB
random_08.txt AC 1 ms 3480 KiB
random_09.txt AC 1 ms 3508 KiB
random_10.txt AC 1 ms 3460 KiB
random_11.txt AC 1 ms 3460 KiB
random_12.txt AC 1 ms 3488 KiB
random_13.txt AC 1 ms 3484 KiB
random_14.txt AC 1 ms 3460 KiB
sample_01.txt AC 1 ms 3456 KiB
sample_02.txt AC 1 ms 3448 KiB