結果
問題 |
No.231 めぐるはめぐる (1)
|
ユーザー |
|
提出日時 | 2015-09-04 09:30:42 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 47 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 23:40:58 |
合計ジャッジ時間 | 1,371 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 RE * 4 |
ソースコード
import itertools as it v = 30000 * 100 N = int(raw_input()) exprate = {} for i in range(1, N + 1): g, d = map(int, raw_input().split()) exprate[i] = g - 30000 * d maxexp = max(exprate.values()) rt = [] if maxexp * 6 < v: print 'NO' else: print 'YES' for i in range(1, min(6, N) + 1): if exprate[i] >= v / 6: rt.append(i) for i in range(6): print rt[(i % len(rt))]