結果
| 問題 | No.2776 Bigger image |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-07-30 00:50:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| + 279µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 91,452 KB |
| 最終ジャッジ日時 | 2026-07-13 15:26:36 |
| 合計ジャッジ時間 | 7,297 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
回転