Submission #515422
Source Code Expand
#include <iostream> using namespace std; int main(){ int l; cin >> l; string ans; if(l < 100){ ans = "00"; }else if(100 <= l <= 5000){ l /= 100; if(l < 10){ ans = "0" + l; }else{ ans = "" + l; } }else if(6000 <= l <= 30000){ ans = "" + (l / 1000 + 50); }else if(35000 <= l <= 70000){ ans = "" + ( (l / 1000 - 30) / 5 + 80 ); }else if(70000 < l){ ans = "89" } cout << ans; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 視程の通報 |
User | warahiko |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 444 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:23:2: error: expected ‘;’ before ‘}’ token