結果

問題 No.231 めぐるはめぐる (1)
ユーザー lloyzlloyz
提出日時 2023-04-01 00:04:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 337 bytes
コンパイル時間 3,077 ms
コンパイル使用メモリ 81,632 KB
実行使用メモリ 63,728 KB
最終ジャッジ日時 2023-10-24 10:36:10
合計ジャッジ時間 1,905 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
63,728 KB
testcase_01 AC 37 ms
53,424 KB
testcase_02 AC 36 ms
53,424 KB
testcase_03 AC 46 ms
61,492 KB
testcase_04 AC 50 ms
63,728 KB
testcase_05 AC 42 ms
55,472 KB
testcase_06 AC 47 ms
61,492 KB
testcase_07 AC 36 ms
53,424 KB
testcase_08 AC 40 ms
55,472 KB
testcase_09 AC 34 ms
53,424 KB
testcase_10 AC 34 ms
53,424 KB
testcase_11 AC 34 ms
53,424 KB
testcase_12 AC 44 ms
60,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
L = [list(map(int, input().split())) for _ in range(n)]
max_i = -1
max_t = -10**18
for i in range(n):
    g, d = L[i]
    res = g - 30000 * d
    if res > max_t:
        max_t = res
        max_i = i + 1

th = 3000000
if max_t * 6 < th:
    print("NO")
else:
    print("YES")
    for _ in range(6):
        print(max_i)
0