9行超短代码(全场最短!)
#include <bits/stdc++.h> using namespace std; int a,b; int main() { cin>>a>>b; cout<<min(a,b)*90+(a-min(a,b))*60+(b-min(a,b))*40; return 0; }
AC代码(別抄)