結果

問題 No.231 めぐるはめぐる (1)
ユーザー ixmelixmel
提出日時 2017-03-30 16:54:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-21 08:43:26
合計ジャッジ時間 1,443 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
7,904 KB
testcase_01 AC 17 ms
7,908 KB
testcase_02 AC 17 ms
7,880 KB
testcase_03 AC 18 ms
7,912 KB
testcase_04 AC 18 ms
7,888 KB
testcase_05 AC 18 ms
7,900 KB
testcase_06 AC 18 ms
7,960 KB
testcase_07 AC 16 ms
7,872 KB
testcase_08 AC 17 ms
7,916 KB
testcase_09 AC 16 ms
7,996 KB
testcase_10 AC 17 ms
7,968 KB
testcase_11 AC 16 ms
7,964 KB
testcase_12 AC 18 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

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")
	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