結果

問題 No.231 めぐるはめぐる (1)
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-01-24 12:03:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 11,732 KB
実行使用メモリ 10,064 KB
最終ジャッジ日時 2023-10-21 13:55:55
合計ジャッジ時間 2,235 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

DEATH = 30000
LIMIT = DEATH*100
N = int(input())
exp = 0
dungeon = 0
for i in range(N):
    g, d = map(int, input().split())
    if exp < g - DEATH * d:
        exp = g - DEATH * d
        dungeon = i+1
if exp*6 > LIMIT:
    print('YES')
    for i in range(6):
        print(dungeon)
else:
    print('NO')
0