結果

問題 No.231 めぐるはめぐる (1)
ユーザー ch1channnch1channn
提出日時 2022-12-11 22:45:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 62,208 KB
最終ジャッジ日時 2024-04-23 17:14:43
合計ジャッジ時間 3,022 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
	
n = int(input())

ans = 3000000
ex = []
for i in range(n):
	G,D = map(int,input().split())
	EX = G - D*30000
	ex.append(EX)
A = max(ex)	

print(A)
if A*6 < ans:
	exit(print("NO"))
N = ex.index(max(ex))	
print("YES")
for i in range(6):
	print(N+1)
0