結果
問題 |
No.647 明太子
|
ユーザー |
|
提出日時 | 2018-05-15 18:28:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 223 ms / 4,500 ms |
コード長 | 509 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 77,496 KB |
最終ジャッジ日時 | 2024-06-28 12:09:31 |
合計ジャッジ時間 | 2,939 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
n = int(input()) members = [list(map(int, input().split())) for _ in range(n)] m = int(input()) mentaiko = [list(map(int, input().split())) for _ in range(m)] mentaiko_count = [0] * m for i, (x, y) in enumerate(mentaiko): for price, hot in members: if x <= price: if y >= hot: mentaiko_count[i] += 1 max_ = max(mentaiko_count) if max_ == 0: print(0) else: print(*[i + 1 for i, x in enumerate(mentaiko_count) if x == max(mentaiko_count) and x != 0], sep="\n")