Submission #36619861
Source Code Expand
h, m = map(int, input().split(" "))
H = f"{h:02}"
M = f"{m:02}"
zenbu = []
for i in range(24):
for j in range(60):
I = f"{i:02}"
J = f"{j:02}"
II = I[0]+J[0]
JJ = I[1]+J[1]
if (0 <= int(II) < 24) and (0 <= int(JJ) < 60):
zenbu.append(I+J)
zenbu2 = [f"{int(cand[0:2])+24:02}"+cand[2:4] for cand in zenbu]
zenbu += zenbu2
for cand in zenbu:
if cand >= H+M:
print(int(cand[0:2])%24, int(cand[2:4]))
break
Submission Info
| Submission Time | |
|---|---|
| Task | B - Misjudge the Time |
| User | minjinaffa |
| Language | PyPy3 (7.3.0) |
| Score | 200 |
| Code Size | 502 Byte |
| Status | AC |
| Exec Time | 99 ms |
| Memory | 70456 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt, 02_handmade_05.txt, 02_handmade_06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 99 ms | 70212 KiB |
| 00_sample_01.txt | AC | 64 ms | 70448 KiB |
| 00_sample_02.txt | AC | 64 ms | 70444 KiB |
| 01_random_00.txt | AC | 61 ms | 70380 KiB |
| 01_random_01.txt | AC | 61 ms | 70144 KiB |
| 01_random_02.txt | AC | 62 ms | 70348 KiB |
| 01_random_03.txt | AC | 61 ms | 70220 KiB |
| 01_random_04.txt | AC | 62 ms | 70132 KiB |
| 02_handmade_00.txt | AC | 61 ms | 70364 KiB |
| 02_handmade_01.txt | AC | 62 ms | 70244 KiB |
| 02_handmade_02.txt | AC | 63 ms | 70132 KiB |
| 02_handmade_03.txt | AC | 62 ms | 70376 KiB |
| 02_handmade_04.txt | AC | 59 ms | 70456 KiB |
| 02_handmade_05.txt | AC | 63 ms | 70284 KiB |
| 02_handmade_06.txt | AC | 64 ms | 70372 KiB |