結果

問題 No.231 めぐるはめぐる (1)
ユーザー 双六双六
提出日時 2020-08-19 02:22:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 489 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 65,664 KB
最終ジャッジ日時 2024-04-20 08:06:58
合計ジャッジ時間 1,579 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
65,664 KB
testcase_01 AC 44 ms
54,656 KB
testcase_02 AC 41 ms
54,400 KB
testcase_03 AC 54 ms
62,720 KB
testcase_04 AC 58 ms
65,408 KB
testcase_05 AC 48 ms
56,192 KB
testcase_06 AC 54 ms
63,232 KB
testcase_07 AC 43 ms
54,656 KB
testcase_08 AC 47 ms
55,680 KB
testcase_09 AC 41 ms
53,760 KB
testcase_10 AC 40 ms
53,504 KB
testcase_11 AC 42 ms
53,248 KB
testcase_12 AC 51 ms
61,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	N = int(input())
	L = []
	for i in range(N):
		G, D = getlist()
		L.append([G - 30000 * D, i])

	L.sort()
	if L[-1][0] * 6 >= 3000000:
		print("YES")
		for i in range(6):
			print(L[-1][1] + 1)

	else:
		print("NO")


if __name__ == '__main__':
	main()
0