AcWing 608. 差
本题链接:AcWing 608. 差
本博客给出本题截图:
AC代码
代码:
#include <iostream> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; cout << "DIFERENCA = " << A * B - C * D << endl; return 0; }
#include <cstdio> using namespace std; int main() { int a, b, c, d; scanf("%d%d%d%d", &a, &b, &c, &d); printf("DIFERENCA = %d\n", a * b - c * d); return 0; }