結果

問題 No.231 めぐるはめぐる (1)
ユーザー matrie
提出日時 2020-12-01 22:19:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 1,000 ms
コード長 205 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-13 03:12:17
合計ジャッジ時間 1,212 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
t = [0] * n
for i in range(n):
	g,d = map(int, input().split())
	t[i] = g - 30000*d
if max(t) >= 500000:
	print("YES")
	c = t.index(max(t))+1
	for _ in range(6): print(c)
else: print("NO")
0