Submission #3775251
Source Code Expand
N,M=map(int,input().split()) flag = False v=[] x=[] y=[] for i in range(M): a,b=map(int,input().split()) v.append((a,b)) if a==1: x.append(b) if b==N: y.append(a) for i in x: for j in y: if x==y: flag=True break if flag: 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 | 383 Byte |
Status | WA |
Exec Time | 2105 ms |
Memory | 30012 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 | AC | 18 ms | 3064 KB |
example1 | AC | 18 ms | 3064 KB |
example2 | AC | 18 ms | 3060 KB |
example3 | WA | 18 ms | 3064 KB |
last0 | WA | 628 ms | 29992 KB |
last1 | WA | 640 ms | 30012 KB |
many0 | TLE | 2105 ms | 28440 KB |
many1 | TLE | 2105 ms | 28444 KB |
rand0 | AC | 415 ms | 20656 KB |
rand1 | AC | 606 ms | 29644 KB |
rand2 | AC | 351 ms | 18528 KB |