結果

問題 No.231 めぐるはめぐる (1)
ユーザー ああいいああいい
提出日時 2022-03-02 14:11:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 1,000 ms
コード長 283 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 87,004 KB
実行使用メモリ 75,648 KB
最終ジャッジ日時 2023-09-23 07:21:56
合計ジャッジ時間 2,517 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
75,424 KB
testcase_01 AC 75 ms
71,468 KB
testcase_02 AC 76 ms
71,168 KB
testcase_03 AC 85 ms
71,308 KB
testcase_04 AC 88 ms
75,648 KB
testcase_05 AC 81 ms
71,424 KB
testcase_06 AC 83 ms
71,452 KB
testcase_07 AC 77 ms
71,472 KB
testcase_08 AC 79 ms
71,400 KB
testcase_09 AC 75 ms
71,404 KB
testcase_10 AC 75 ms
71,488 KB
testcase_11 AC 75 ms
71,360 KB
testcase_12 AC 82 ms
71,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = 3000000
_max = 0
index = -1
for _ in range(N):
    g,d = map(int,input().split())
    if g - d * 30000 > _max:
        _max = g - d * 30000
        index = _ + 1
if _max * 6 >= S:
    print('YES')
    for _ in range(6):
        print(index)
else:
    print('NO')
0