結果

問題 No.231 めぐるはめぐる (1)
ユーザー 双六双六
提出日時 2020-08-19 02:22:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 489 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 76,944 KB
最終ジャッジ日時 2023-08-02 08:29:56
合計ジャッジ時間 2,432 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
76,944 KB
testcase_01 AC 83 ms
71,652 KB
testcase_02 AC 82 ms
71,592 KB
testcase_03 AC 94 ms
76,544 KB
testcase_04 AC 98 ms
76,860 KB
testcase_05 AC 88 ms
72,252 KB
testcase_06 AC 100 ms
76,532 KB
testcase_07 AC 83 ms
71,540 KB
testcase_08 AC 91 ms
72,460 KB
testcase_09 AC 84 ms
71,536 KB
testcase_10 AC 79 ms
71,332 KB
testcase_11 AC 81 ms
71,684 KB
testcase_12 AC 92 ms
76,016 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