結果

問題 No.231 めぐるはめぐる (1)
ユーザー Watson
提出日時 2017-08-04 10:00:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-11 20:44:57
合計ジャッジ時間 1,248 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
b = []
for i in range(N):
    a=[int(i) for i in input().split()]
    x,y = a[0],a[1]*30000
    b.append(x-y)
if max(b)*6 >= 3000000:
    print("YES")
    for i in range(6):
        print(b.index(max(b))+1)
else:
    print("NO")
0