以下の内容はhttps://shiroyuki2020.hatenablog.com/entry/atcoder_abc052_aより取得しました。


AtCoder|ABC052:A - Two Rectangles

AtCoderの過去問対策です。ABCで解けなかった問題、ためになった問題のコードを備忘録として残します。

問題

A - Two Rectangles

解説

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()で大きい方の面積を返す




以上の内容はhttps://shiroyuki2020.hatenablog.com/entry/atcoder_abc052_aより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14