#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b);//输入第一二项 int d = b - a;//定义等差值 int c = b + d; printf("%d\n",c); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b);//输入第一二项 int d = b - a;//定义等差值 int c = b + d; printf("%d\n",c); return 0; }