Submission #7019344


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 PyPy3 (2.4.0)
Score 0
Code Size 205 Byte
Status RE
Exec Time 189 ms
Memory 38384 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 166 ms 38256 KB
a02 RE 184 ms 38256 KB
b03 RE 177 ms 38256 KB
b04 RE 169 ms 38256 KB
b05 RE 170 ms 38256 KB
b06 RE 163 ms 38256 KB
b07 RE 189 ms 38384 KB
b08 RE 169 ms 38256 KB