結果

問題 No.231 めぐるはめぐる (1)
ユーザー GrayCoderGrayCoder
提出日時 2017-10-20 16:36:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-01 07:55:55
合計ジャッジ時間 1,948 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    N = int(input())
    GD = tuple(tuple(map(int, input().split())) for _ in [0] * N)

    dungeon = (-3000000, -3000000)
    for i, (g, d) in enumerate(GD):
        p = g - 30000 * d
        if dungeon[1] < p:
            dungeon = (i + 1, p)

    if dungeon[1] * 6 >= 3000000:
        print('YES')
        for i in [0] * 6:
            print(dungeon[0])

main()
0