题解 | 构造C的歪
构造C的歪
https://www.nowcoder.com/practice/56735b3fe2fc4ed5916f5427dc787156
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to if(a-b>0) printf("%d\n", b-(a-b)); else printf("%d\n", a-(b-a)); } return 0; }