結果

問題 No.231 めぐるはめぐる (1)
ユーザー rpy3cpprpy3cpp
提出日時 2015-06-26 22:40:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 380 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-22 00:53:09
合計ジャッジ時間 2,953 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def read_data():
    N = int(input())
    Es = []
    for i in range(N):
        g, d = map(int, input().split())
        Es.append(g - 30000 * d, i + 1)
    return N, Es

def solve(N, Es):
    Es.sort(reverse=True)
    x = 30000*100
    e, i = Es[0]
    if e * 6 < x:
        print('NO')
    else:
        for t in range(6):
            print(i)

N, Es = read_data()
solve(N, Es)
0