結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-13 07:16:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 1,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-22 02:35:35 |
| 合計ジャッジ時間 | 1,441 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
from collections import Counter
cnt = Counter()
N = int(input())
for i in range(1, N + 1):
G, D = [int(i) for i in input().split()]
cnt += {i:G - D * 30000}
if len(cnt) > 0 and max(cnt.values()) * 6 >= 3000000:
print("YES")
d = max(cnt.items(), key=lambda x: x[1])[0]
for _ in [0] * 6:
print(d)
else:
print("NO")