結果
問題 |
No.2776 Bigger image
|
ユーザー |
|
提出日時 | 2024-06-07 21:30:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 143 ms / 2,000 ms |
コード長 | 463 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 85,760 KB |
最終ジャッジ日時 | 2024-12-26 07:07:14 |
合計ジャッジ時間 | 5,072 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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')