Submission #1656891


Source Code Expand

Copy
S = input()
print('Yes' if S[0] == S[1] and S[1] != S[2] and S[2] == S[3] else  'No')

Submission Info

Submission Time
Task A - DDCC型文字列
User nel215
Language Python3 (3.4.3)
Score 100
Code Size 88 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 100 / 100 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
01.txt 17 ms 2940 KB
02.txt 17 ms 2940 KB
03.txt 17 ms 2940 KB
04.txt 17 ms 2940 KB
05.txt 17 ms 2940 KB
06.txt 17 ms 2940 KB
07.txt 17 ms 2940 KB
08.txt 17 ms 2940 KB
09.txt 17 ms 2940 KB
sample_01.txt 17 ms 2940 KB
sample_02.txt 17 ms 2940 KB
sample_03.txt 16 ms 2940 KB