Submission #45492902


Source Code Expand

Copy
N = input()
if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]:
print("Yes")
else:
print("No")
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
N = input()
if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]:
    print("Yes")
else:
    print("No")

Submission Info

Submission Time
Task A - Good Integer
User KoyanagiHitoshi
Language Python (CPython 3.11.4)
Score 100
Code Size 100 Byte
Status AC
Exec Time 11 ms
Memory 8644 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
01.txt AC 10 ms 8528 KB
02.txt AC 10 ms 8468 KB
03.txt AC 11 ms 8524 KB
04.txt AC 10 ms 8644 KB
05.txt AC 10 ms 8520 KB
06.txt AC 10 ms 8512 KB
07.txt AC 10 ms 8484 KB
08.txt AC 10 ms 8472 KB
09.txt AC 10 ms 8520 KB
10.txt AC 10 ms 8440 KB
11.txt AC 10 ms 8416 KB
sample_01.txt AC 10 ms 8532 KB
sample_02.txt AC 11 ms 8516 KB
sample_03.txt AC 10 ms 8528 KB


2025-04-05 (Sat)
12:19:41 +00:00