結果

問題 No.231 めぐるはめぐる (1)
ユーザー HirakeHirake
提出日時 2017-06-14 13:41:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 344 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 11,864 KB
実行使用メモリ 10,196 KB
最終ジャッジ日時 2023-10-25 01:17:38
合計ジャッジ時間 2,023 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,196 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 31 ms
10,164 KB
testcase_04 AC 32 ms
10,180 KB
testcase_05 WA -
testcase_06 AC 31 ms
10,164 KB
testcase_07 AC 29 ms
10,116 KB
testcase_08 AC 30 ms
10,136 KB
testcase_09 AC 29 ms
10,108 KB
testcase_10 AC 29 ms
10,108 KB
testcase_11 AC 29 ms
10,108 KB
testcase_12 AC 31 ms
10,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# your code goes here
N=int(input())
G=[0]*N
D=[0]*N
for i in range(N):
    G[i],D[i]=(int(i) for i in input().split())
F=[0]*N
M=0
d=0
for i in range(N):
    F[i]-=30000*D[i]
    F[i]+=G[i]
#    print(F[i])
    if M<F[i]:
        M=F[i]
        d=i
if M*6<30000:
    print("NO")
else:
    print("YES")
    for i in range(6):
        print(d+1)
0