結果

問題 No.231 めぐるはめぐる (1)
ユーザー mlihua09mlihua09
提出日時 2020-08-28 14:42:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 75,368 KB
最終ジャッジ日時 2023-08-08 18:08:42
合計ジャッジ時間 2,980 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
75,368 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 79 ms
71,416 KB
testcase_04 AC 84 ms
75,080 KB
testcase_05 WA -
testcase_06 AC 75 ms
71,132 KB
testcase_07 AC 71 ms
71,360 KB
testcase_08 AC 72 ms
71,060 KB
testcase_09 AC 72 ms
71,064 KB
testcase_10 AC 68 ms
71,424 KB
testcase_11 AC 71 ms
71,268 KB
testcase_12 AC 75 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

g = 0

x = 0

for i in range(N):
    
    G, D = map(int, input().split())
    
    if G - 30000 * D > g:
        
        g = G - 30000 * D
        
        x = i + 1

if g * 6 >= 300000:
    
    print('YES')
    
    print(x, x, x, x, x, x, sep='\n')
    
else:
    
    print('NO')
0