結果
| 問題 | No.2776 Bigger image |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2024-06-07 21:31:05 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 48 ms / 2,000 ms |
| + 766µs | |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 75,672 KB |
| 最終ジャッジ日時 | 2026-10-08 05:04:44 |
| 合計ジャッジ時間 | 3,267 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
from fractions import Fraction
a, b = map(int, input().split())
h, w = map(int, input().split())
s1 = min(Fraction(h, a), Fraction(w, b))
s2 = min(Fraction(h, b), Fraction(w, a))
print('Non-rotating' if s1 > s2 else 'Rotating' if s1 < s2 else 'Same')
Kude