結果
問題 |
No.2776 Bigger image
|
ユーザー |
![]() |
提出日時 | 2025-07-30 00:50:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 152 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 89,028 KB |
最終ジャッジ日時 | 2025-07-30 00:50:30 |
合計ジャッジ時間 | 5,685 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
from fractions import Fraction A,B = list(map(int,input().split())) H,W = list(map(int,input().split())) rotate = min(Fraction(H,B), Fraction(W,A)) not_rotate = min(Fraction(H,A), Fraction(W,B)) if(rotate > not_rotate): print("Rotating") elif(rotate == not_rotate): print("Same") else: print("Non-rotating")