結果

問題 No.231 めぐるはめぐる (1)
ユーザー netyo715
提出日時 2021-07-15 13:55:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-04 14:06:45
合計ジャッジ時間 1,320 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = [list(map(int, input().split())) for _ in range(N)]
e = [[x[i][0]-x[i][1]*30000, i] for i in range(N)]
e.sort(reverse=True)
if e[0][0]*6 >= 30000*100:
    print("YES")
    print(*[e[0][1]+1]*6, sep="\n")
else:
    print("NO")
0