結果

問題 No.231 めぐるはめぐる (1)
ユーザー ixmelixmel
提出日時 2017-03-30 16:53:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 8,056 KB
最終ジャッジ日時 2023-09-21 08:43:22
合計ジャッジ時間 2,319 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
import math as mas

n=int(input())
ma,to=0,0
for i in range(n):
	a,b=map(int,input().split())
	if ma<a-30000*b:
		ma=a-30000*b
		to=i
if ma>=500000:
	print("YES")
	print(*list(str(1+to))*6)
#	for i in range(6):print(to+1)
else:print("NO")

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))
0