Submission #4196766
Source Code Expand
n, y = map(int, input().split()) ans = [-1, -1, -1] flag = 0 for i in range(n + 1): for j in range(n + 1 - i): if 10000 * i + 5000 * j + 1000 * (n - i - j) == y: ans = [i, j, n - i - j] break print(' '.join(map(str, ans)))
Submission Info
Submission Time | |
---|---|
Task | C - Otoshidama |
User | Asymmetry |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 280 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘n’ does not name a type n, y = map(int, input().split()) ^