Submission #7019313


Source Code Expand

N, Y =map(int,input().split(" "))
for i in range(N+1):
    for j in range(N-i+1):
        if i * 10000 + j*5000 + (N-i-j)*1000 ==y:
            print(i, j, N-i-j)
            exit()
print(-1, -1, -1)

Submission Info

Submission Time
Task A - Already 2018
User tacker
Language Python (3.4.3)
Score 0
Code Size 205 Byte
Status RE
Exec Time 17 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
RE × 2
RE × 8
Set Name Test Cases
Sample a01, a02
All a01, a02, b03, b04, b05, b06, b07, b08
Case Name Status Exec Time Memory
a01 RE 17 ms 2940 KB
a02 RE 17 ms 2940 KB
b03 RE 17 ms 3060 KB
b04 RE 17 ms 2940 KB
b05 RE 17 ms 2940 KB
b06 RE 17 ms 3060 KB
b07 RE 17 ms 2940 KB
b08 RE 17 ms 2940 KB