結果

問題 No.231 めぐるはめぐる (1)
ユーザー hkawa117hkawa117
提出日時 2015-09-04 09:30:42
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 418 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,232 KB
最終ジャッジ日時 2023-09-26 04:18:21
合計ジャッジ時間 2,173 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 13 ms
5,940 KB
testcase_02 AC 13 ms
5,928 KB
testcase_03 AC 17 ms
6,232 KB
testcase_04 AC 16 ms
6,080 KB
testcase_05 AC 14 ms
6,040 KB
testcase_06 AC 14 ms
6,000 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 12 ms
6,164 KB
testcase_10 AC 12 ms
6,016 KB
testcase_11 AC 12 ms
5,976 KB
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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))]
0