結果

問題 No.231 めぐるはめぐる (1)
ユーザー mlihua09mlihua09
提出日時 2020-08-28 15:00:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 315 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,912 KB
実行使用メモリ 61,352 KB
最終ジャッジ日時 2024-04-26 10:38:20
合計ジャッジ時間 1,444 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
61,352 KB
testcase_01 AC 43 ms
53,424 KB
testcase_02 AC 38 ms
53,836 KB
testcase_03 AC 47 ms
55,996 KB
testcase_04 AC 49 ms
61,240 KB
testcase_05 AC 42 ms
54,656 KB
testcase_06 AC 48 ms
56,280 KB
testcase_07 AC 39 ms
52,868 KB
testcase_08 AC 41 ms
55,728 KB
testcase_09 AC 38 ms
52,696 KB
testcase_10 AC 37 ms
52,496 KB
testcase_11 AC 38 ms
52,616 KB
testcase_12 AC 45 ms
55,048 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 >= 3000000:
    
    print('YES')
    
    print(x, x, x, x, x, x, sep='\n')
    
else:
    
    print('NO')
0