Submission #4138427
Source Code Expand
#include<iostream> using namespace std; int main(){ int n,m,ans=-999,x,y; cin>>n>>m; x=n,y=m; ans= max(ans, (x%100+900-y)); ans= max(ans, ((x/100)*100+x%10+90)-y); ans= max(ans, x+9-x%10-y); ans= max(ans, x-(y%100+100)); ans= max(ans, x-((y/100)*100+y%10)); ans= max(ans, x-(y-y%10)); cout<<ans<<endl; return 0;
Submission Info
Submission Time | |
---|---|
Task | A - A - B problem |
User | luogu_bot3 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 370 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:14:13: error: expected ‘}’ at end of input return 0; ^