题解 | 构造C的歪
构造C的歪
https://www.nowcoder.com/practice/56735b3fe2fc4ed5916f5427dc787156
#include <iostream>
using namespace std;
int main() {
int a, b;
cin>>a>>b;
int t=a;
a=(t>b?t:b);
b=(t<b?t:b);
cout<<2*a-b<<endl;
return 0;
}
// 64 位输出请用 printf("%lld")
查看3道真题和解析