結果

問題 No.231 めぐるはめぐる (1)
ユーザー ssmkzkssmkzk
提出日時 2018-07-17 01:13:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 302 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 7,892 KB
最終ジャッジ日時 2023-08-14 09:38:22
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,800 KB
testcase_01 AC 13 ms
7,760 KB
testcase_02 AC 13 ms
7,748 KB
testcase_03 AC 14 ms
7,892 KB
testcase_04 AC 16 ms
7,880 KB
testcase_05 AC 15 ms
7,788 KB
testcase_06 AC 15 ms
7,804 KB
testcase_07 AC 13 ms
7,868 KB
testcase_08 AC 14 ms
7,872 KB
testcase_09 AC 14 ms
7,868 KB
testcase_10 AC 13 ms
7,868 KB
testcase_11 AC 13 ms
7,804 KB
testcase_12 AC 13 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
need = 3000000
max_d = 0
num_d = 0

for i in range(N):
    g, d = map(int, input().split())
    get = g - (30000 * d)
    if get > max_d:
        max_d = get
        num_d = i + 1

if max_d * 6 >= need:
    print("YES")
    for i in range(6):
        print(num_d)
else:
    print("NO")
0