結果
| 問題 | No.647 明太子 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-05 17:01:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 12,928 KB |
| 最終ジャッジ日時 | 2024-12-21 09:10:08 |
| 合計ジャッジ時間 | 10,914 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 WA * 1 |
ソースコード
N = int(input())
Lh = [list(map(int, input().split())) for _ in range(N)]
M = int(input())
Lm = [list(map(int, input().split())) + [i+1] for i in range(M)]
L = [0] * (M+1)
for a, b in Lh:
for c, d, i in Lm:
if a >= c and b <= d:
L[i] += 1
X = max(L)
if X == 0:
print(0)
else:
if L.count(X) == 1:
print(L.index(X))
else:
for i in range(M):
if X == L[i]:
print(i)