結果

問題 No.231 めぐるはめぐる (1)
ユーザー roiti46roiti46
提出日時 2015-06-26 22:28:24
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 6,700 KB
実行使用メモリ 6,148 KB
最終ジャッジ日時 2023-08-07 18:34:03
合計ジャッジ時間 1,523 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
6,148 KB
testcase_01 AC 12 ms
5,956 KB
testcase_02 AC 11 ms
6,004 KB
testcase_03 AC 14 ms
6,120 KB
testcase_04 AC 15 ms
6,044 KB
testcase_05 AC 13 ms
6,132 KB
testcase_06 AC 14 ms
6,124 KB
testcase_07 AC 11 ms
6,012 KB
testcase_08 AC 12 ms
5,952 KB
testcase_09 AC 11 ms
6,084 KB
testcase_10 AC 11 ms
5,832 KB
testcase_11 AC 11 ms
5,884 KB
testcase_12 AC 13 ms
5,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
exp = 3000000
GD = [map(int, raw_input().split()) + [i] for i in xrange(N)]

G = sorted([[g - exp / 100 * d, i] for g, d, i in GD], reverse = True)
if 6 * max(G)[0] >= exp:
        print "YES"
        for i in xrange(6):
                print max(G)[1] + 1
else:
        print "NO"
0