結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-26 22:28:24 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 1,000 ms |
| + 790µs | |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 82,304 KB |
| 最終ジャッジ日時 | 2026-07-17 16:52:28 |
| 合計ジャッジ時間 | 2,052 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
N = int(raw_input())
exp = 3000000
GD = [map(int, raw_input().split()) + [i] for i in xrange(N)]
G = sorted([[g - exp / 100 * d, i] for g, d, i in GD], reverse = True)
if 6 * max(G)[0] >= exp:
print "YES"
for i in xrange(6):
print max(G)[1] + 1
else:
print "NO"