結果
問題 |
No.2776 Bigger image
|
ユーザー |
|
提出日時 | 2024-07-10 15:12:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 539 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 52,220 KB |
最終ジャッジ日時 | 2024-07-10 15:14:13 |
合計ジャッジ時間 | 2,847 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
def main(): A, B = map(int, input().split()) H, W = map(int, input().split()) area_1 = A**2 * W**2 area_2 = B**2 * H**2 area_3 = B**2 * W**2 area_4 = A**2 * H ** 2 area_not_rotate = min(area_1, area_2) area_rotate = min(area_3, area_4) if area_not_rotate > area_rotate: print("Non-rotating") elif area_not_rotate < area_rotate: print("Rotating") else: print("Same") # A *W/B * W # H * B*H/A # B*W/A*W # H*A*H/B if __name__ == "__main__": main()