Submission #7468734
Source Code Expand
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main(void){ int n,m,a,b,c; cin >> n >> m; if(m%2){ n--; m-=3; c=1; } else { c=0; } a = (n*4-m)/2; b = n-a; if(a<0 || b<0){ a=b=c=1; cout << "-1 -1 -1" << endl; return 0; } else { cout << a << " " << c << " " << b << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - スフィンクスのなぞなぞ |
User | b1015218 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 459 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:27:5: error: expected ‘}’ at end of input } ^