結果
| 問題 | No.2776 Bigger image |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:30:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 463 bytes |
| 記録 | |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 86,144 KB |
| 最終ジャッジ日時 | 2026-06-01 04:02:25 |
| 合計ジャッジ時間 | 4,668 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#
#alist = []
a,b = map(int,input().split())
h,w = map(int,input().split())
x = min((a,w*(a/h)),(h*(b/w),b))
h,w = w,h
y = min((a,w*(a/h)),(h*(b/w),b))
x = x[0]*x[1]
y = y[0]*y[1]
if x > y:
print('Non-rotating')
elif x < y:
print('Rotating')
else:
print('Same')