結果

問題 No.231 めぐるはめぐる (1)
ユーザー openopen
提出日時 2017-06-13 07:59:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 303 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 11,944 KB
実行使用メモリ 10,300 KB
最終ジャッジ日時 2023-10-24 21:42:18
合計ジャッジ時間 2,776 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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]
    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)
0