結果

問題 No.231 めぐるはめぐる (1)
ユーザー airisairis
提出日時 2015-06-26 22:46:51
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,340 KB
最終ジャッジ日時 2023-08-07 18:35:59
合計ジャッジ時間 1,176 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,112 KB
testcase_01 AC 12 ms
5,960 KB
testcase_02 AC 12 ms
6,072 KB
testcase_03 AC 13 ms
6,064 KB
testcase_04 AC 15 ms
6,340 KB
testcase_05 AC 13 ms
6,104 KB
testcase_06 AC 14 ms
6,160 KB
testcase_07 AC 12 ms
5,968 KB
testcase_08 AC 12 ms
6,264 KB
testcase_09 AC 11 ms
6,068 KB
testcase_10 AC 12 ms
6,064 KB
testcase_11 AC 12 ms
6,124 KB
testcase_12 AC 14 ms
6,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
ls = []

for i in xrange(n):
  g, d = map(int, raw_input().split())
  ls.append([g - 30000 * d, i])
ls.sort(reverse=True)
if ls[0][0] * 6 >= 30000 * 100:
  print "YES"
  for i in xrange(6):
    print ls[0][1] + 1
else:
  print "NO"

0