Submission #60322926
Source Code Expand
Copy
N, M = map(int, input().split()) # N人の美食家とM個の寿司A = list(map(int, input().split())) # N人B = list(map(int, input().split())) # M個for m in range(M):for n in range(N):if A[n] <= B[m]:B[m] = 0print(n+1)breakif B[m] != 0:print(-1)
N, M = map(int, input().split()) # N人の美食家とM個の寿司 A = list(map(int, input().split())) # N人 B = list(map(int, input().split())) # M個 for m in range(M): for n in range(N): if A[n] <= B[m]: B[m] = 0 print(n+1) break if B[m] != 0: print(-1)
Submission Info
Submission Time | |
---|---|
Task | C - Kaiten Sushi |
User | himarin |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 0 |
Code Size | 330 Byte |
Status | TLE |
Exec Time | 2213 ms |
Memory | 127252 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 350 | ||||||
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_random2_00.txt, 02_random2_01.txt, 02_random2_02.txt, 02_random2_03.txt, 02_random2_04.txt, 02_random2_05.txt, 02_random2_06.txt, 02_random2_07.txt, 02_random2_08.txt, 02_random2_09.txt, 02_random2_10.txt, 02_random2_11.txt, 02_random2_12.txt, 02_random2_13.txt, 02_random2_14.txt, 02_random2_15.txt, 02_random2_16.txt, 03_handmade_00.txt, 03_handmade_01.txt, 03_handmade_02.txt, 03_handmade_03.txt, 03_handmade_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 58 ms | 76636 KB |
00_sample_01.txt | AC | 57 ms | 76552 KB |
00_sample_02.txt | AC | 57 ms | 76340 KB |
01_random_00.txt | AC | 94 ms | 102708 KB |
01_random_01.txt | AC | 80 ms | 92336 KB |
01_random_02.txt | AC | 108 ms | 119896 KB |
01_random_03.txt | AC | 122 ms | 127252 KB |
01_random_04.txt | AC | 99 ms | 113476 KB |
02_random2_00.txt | TLE | 2213 ms | 125200 KB |
02_random2_01.txt | TLE | 2213 ms | 125368 KB |
02_random2_02.txt | TLE | 2213 ms | 125076 KB |
02_random2_03.txt | TLE | 2213 ms | 125412 KB |
02_random2_04.txt | TLE | 2213 ms | 125032 KB |
02_random2_05.txt | TLE | 2213 ms | 125560 KB |
02_random2_06.txt | TLE | 2213 ms | 125368 KB |
02_random2_07.txt | TLE | 2213 ms | 125436 KB |
02_random2_08.txt | TLE | 2213 ms | 125024 KB |
02_random2_09.txt | TLE | 2213 ms | 124984 KB |
02_random2_10.txt | TLE | 2213 ms | 125156 KB |
02_random2_11.txt | TLE | 2213 ms | 125220 KB |
02_random2_12.txt | TLE | 2213 ms | 125272 KB |
02_random2_13.txt | TLE | 2213 ms | 125464 KB |
02_random2_14.txt | TLE | 2213 ms | 125172 KB |
02_random2_15.txt | TLE | 2213 ms | 124976 KB |
02_random2_16.txt | TLE | 2213 ms | 126168 KB |
03_handmade_00.txt | TLE | 2213 ms | 126276 KB |
03_handmade_01.txt | AC | 116 ms | 126132 KB |
03_handmade_02.txt | AC | 96 ms | 113792 KB |
03_handmade_03.txt | AC | 95 ms | 113956 KB |
03_handmade_04.txt | AC | 57 ms | 76696 KB |