結果

問題 No.231 めぐるはめぐる (1)
ユーザー ssmkzkssmkzk
提出日時 2018-07-17 01:09:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-01 22:00:23
合計ジャッジ時間 1,792 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 28 ms
10,752 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 29 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 26 ms
10,752 KB
testcase_11 AC 27 ms
10,752 KB
testcase_12 AC 26 ms
10,624 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