Submission #7026911
Source Code Expand
num = input().split() n = int(num[0]) y = int(num[1]) m = 0 g = 0 s = 0 flag = False for i in range(n): if flag: break m = i for e in range(n): g = e for w in range (n): s=w if m+g+s <= n: me = m * 10000 ge = g * 5000 se = s * 1000 if me + ge + se == y: flag = True ma = m ga = g sa = s w+=1 e+=1 i+=1 if flag: print(ma,ga,sa) else: print(-1,-1,-1)
Submission Info
Submission Time | |
---|---|
Task | C - Otoshidama |
User | jyodai |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 759 Byte |
Status | WA |
Exec Time | 2104 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | a01, a02, a03, a04 |
All | a01, a02, a03, a04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22, b23, b24 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
a01 | WA | 17 ms | 3064 KB |
a02 | AC | 19 ms | 3064 KB |
a03 | WA | 405 ms | 3064 KB |
a04 | TLE | 2104 ms | 3064 KB |
b05 | WA | 17 ms | 3064 KB |
b06 | WA | 17 ms | 3064 KB |
b07 | WA | 17 ms | 3064 KB |
b08 | WA | 1518 ms | 3064 KB |
b09 | TLE | 2104 ms | 3064 KB |
b10 | WA | 1531 ms | 3064 KB |
b11 | TLE | 2104 ms | 3064 KB |
b12 | WA | 1459 ms | 3064 KB |
b13 | WA | 1349 ms | 3064 KB |
b14 | WA | 1549 ms | 3064 KB |
b15 | TLE | 2104 ms | 3064 KB |
b16 | TLE | 2103 ms | 3064 KB |
b17 | TLE | 2104 ms | 3064 KB |
b18 | AC | 17 ms | 3064 KB |
b19 | AC | 804 ms | 3064 KB |
b20 | WA | 1428 ms | 3064 KB |
b21 | WA | 1487 ms | 3064 KB |
b22 | WA | 1397 ms | 3064 KB |
b23 | TLE | 2104 ms | 3064 KB |
b24 | TLE | 2104 ms | 3064 KB |