結果
問題 |
No.2776 Bigger image
|
ユーザー |
![]() |
提出日時 | 2024-06-07 22:03:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-12-26 08:06:17 |
合計ジャッジ時間 | 2,702 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 4 |
ソースコード
A,B=map(int,input().split()) H,W=map(int,input().split()) if A==B or min(A,B)>max(H,W): print("Same") else: ans1=0 ans2=0 ans1=A*B*min(H/A,W/B) ans2=A*B*min(W/A,H/B) if ans1>ans2: print("Non-rotating") elif ans2>ans1: print("Rotating") else: print("Same")