Submission #3225000
Source Code Expand
N,M=map(int,input().split()) S=[list(map(int,input().split())) for i in range(N)] T=[list(map(int,input().split())) for i in range(M)] for i in range(N): x1=S[i][0] y1=S[i][1] x2=T[0][0] y2=T[0][1] min=abs(x1-x2)+abs(y1-y2) x1=S[i][0] y1=S[i][1] for j in range(M-1,-1,-1): x2=T[j][0] y2=T[j][1] if min>=abs(x1-x2)+abs(y1-y2): min=abs(x1-x2)+abs(y1-y2) R[i]=j+1 for i in range(len(R)): print(R[i])
Submission Info
Submission Time | |
---|---|
Task | B - Checkpoints |
User | ryopal |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 498 Byte |
Status | RE |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | RE | 18 ms | 3064 KB |
sample_02.txt | RE | 17 ms | 3064 KB |
sample_03.txt | RE | 18 ms | 3064 KB |
subtask_1_1.txt | RE | 18 ms | 3064 KB |
subtask_1_2.txt | RE | 18 ms | 3064 KB |
subtask_1_3.txt | RE | 18 ms | 3064 KB |
subtask_1_4.txt | RE | 18 ms | 3064 KB |
subtask_1_5.txt | RE | 18 ms | 3064 KB |
subtask_1_6.txt | RE | 18 ms | 3064 KB |
subtask_1_7.txt | RE | 18 ms | 3064 KB |