Submission #3775396
Source Code Expand
N,M=map(int,input().split()) x=[0]*(n+1) y=[0]*(n+1) for i in range(M): a,b=map(int,input().split()) if a==1: x[b]=1 if b==N: y[a]=1 for i in range(N+1): if x[i]==1 and y[i]==1: print("POSSIBLE") break else: print("IMPOSSIBLE")
Submission Info
Submission Time | |
---|---|
Task | C - Cat Snuke and a Voyage |
User | moro |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 293 Byte |
Status | RE |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2, example3 |
All | example0, example1, example2, example3, last0, last1, many0, many1, rand0, rand1, rand2 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example0 | RE | 17 ms | 3060 KB |
example1 | RE | 17 ms | 3060 KB |
example2 | RE | 17 ms | 3060 KB |
example3 | RE | 17 ms | 3064 KB |
last0 | RE | 18 ms | 3060 KB |
last1 | RE | 17 ms | 3064 KB |
many0 | RE | 17 ms | 3060 KB |
many1 | RE | 18 ms | 3060 KB |
rand0 | RE | 18 ms | 3060 KB |
rand1 | RE | 17 ms | 3060 KB |
rand2 | RE | 18 ms | 3060 KB |