Submission #20289366
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
bool check(string s)
{
for (size_t i=0;i<s.size();i++)
{
if (!(i&1) && isupper(s[i])) return false;
if ((i&1) && islower(s[i])) return false;
}
return true;
}
int main()
{
string s;
cin>>s;
if (check(s)) cout<<"Yes";
else cout<<"No";
getchar(); getchar();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - uNrEaDaBlE sTrInG |
| User | JunjieCharles |
| Language | C++ (GCC 9.2.1) |
| Score | 200 |
| Code Size | 392 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3640 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| 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 | 3544 KiB |
| no2_02.txt | AC | 2 ms | 3488 KiB |
| no_01.txt | AC | 2 ms | 3640 KiB |
| no_02.txt | AC | 2 ms | 3504 KiB |
| no_03.txt | AC | 6 ms | 3560 KiB |
| no_04.txt | AC | 2 ms | 3440 KiB |
| no_05.txt | AC | 4 ms | 3508 KiB |
| no_06.txt | AC | 3 ms | 3556 KiB |
| no_07.txt | AC | 3 ms | 3492 KiB |
| no_08.txt | AC | 2 ms | 3496 KiB |
| no_09.txt | AC | 4 ms | 3608 KiB |
| no_10.txt | AC | 2 ms | 3552 KiB |
| sample_01.txt | AC | 2 ms | 3552 KiB |
| sample_02.txt | AC | 3 ms | 3468 KiB |
| sample_03.txt | AC | 2 ms | 3496 KiB |
| yes_01.txt | AC | 3 ms | 3560 KiB |
| yes_02.txt | AC | 2 ms | 3628 KiB |
| yes_03.txt | AC | 2 ms | 3636 KiB |
| yes_04.txt | AC | 2 ms | 3540 KiB |
| yes_05.txt | AC | 2 ms | 3500 KiB |
| yes_06.txt | AC | 3 ms | 3604 KiB |
| yes_07.txt | AC | 3 ms | 3496 KiB |
| yes_08.txt | AC | 3 ms | 3556 KiB |
| yes_09.txt | AC | 2 ms | 3600 KiB |
| yes_10.txt | AC | 2 ms | 3600 KiB |