AtCoderの過去問対策です。ABCで解けなかった問題、ためになった問題のコードを備忘録として残します。
問題
解説
https://img.atcoder.jp/arc067/editorial.pdf
解答例
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; cout << max(A*B, C*D) << endl; }
メモ
- max()で大きい方の面積を返す