Submission #20374672


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	for(int i=0;i<(int)s.size();i++){
		if(i&1){
			if(s[i]<='z'&&s[i]>='a'){
				cout<<"No";return 0;
			}
		}
		else{
			if(!(s[i]<='z'&&s[i]>='a')){
				cout<<"No";return 0;
			}
		}
	}
	cout<<"Yes";
}

Submission Info

Submission Time
Task B - uNrEaDaBlE sTrInG
User kurtis
Language C++ (GCC 9.2.1)
Score 200
Code Size 296 Byte
Status AC
Exec Time 6 ms
Memory 3632 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 26
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, no2_01.txt, no2_02.txt, no_01.txt, no_02.txt, no_03.txt, no_04.txt, no_05.txt, no_06.txt, no_07.txt, no_08.txt, no_09.txt, no_10.txt, sample_01.txt, sample_02.txt, sample_03.txt, yes_01.txt, yes_02.txt, yes_03.txt, yes_04.txt, yes_05.txt, yes_06.txt, yes_07.txt, yes_08.txt, yes_09.txt, yes_10.txt
Case Name Status Exec Time Memory
hand_01.txt AC 6 ms 3436 KiB
no2_01.txt AC 2 ms 3536 KiB
no2_02.txt AC 3 ms 3436 KiB
no_01.txt AC 5 ms 3500 KiB
no_02.txt AC 2 ms 3552 KiB
no_03.txt AC 2 ms 3596 KiB
no_04.txt AC 2 ms 3600 KiB
no_05.txt AC 2 ms 3548 KiB
no_06.txt AC 2 ms 3536 KiB
no_07.txt AC 2 ms 3556 KiB
no_08.txt AC 2 ms 3600 KiB
no_09.txt AC 2 ms 3476 KiB
no_10.txt AC 2 ms 3432 KiB
sample_01.txt AC 2 ms 3412 KiB
sample_02.txt AC 2 ms 3596 KiB
sample_03.txt AC 2 ms 3624 KiB
yes_01.txt AC 3 ms 3596 KiB
yes_02.txt AC 5 ms 3600 KiB
yes_03.txt AC 2 ms 3548 KiB
yes_04.txt AC 3 ms 3632 KiB
yes_05.txt AC 3 ms 3596 KiB
yes_06.txt AC 2 ms 3632 KiB
yes_07.txt AC 2 ms 3628 KiB
yes_08.txt AC 2 ms 3476 KiB
yes_09.txt AC 3 ms 3628 KiB
yes_10.txt AC 2 ms 3596 KiB