結果
| 問題 |
No.647 明太子
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-21 15:41:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 578 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,024 KB |
| 最終ジャッジ日時 | 2024-09-25 09:29:39 |
| 合計ジャッジ時間 | 8,652 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 TLE * 1 -- * 9 |
ソースコード
n = int(input())
cond = {}
for i in range(n):
inp = input()
cond.setdefault(inp,0)
cond[inp] += 1
m = int(input())
ment = []
for i in range(m):
inp = list(map(int,input().split()))
ment.append(inp)
dct = {}
for i in range(m):
for j,k in cond.items():
if ment[i][0] <= list(map(int,j.split()))[0] and ment[i][1] >= list(map(int,j.split()))[1]:
dct.setdefault(i+1, 0)
dct[i+1] += k
if len(dct) == 0:
print(0)
else:
res = [i for i,j in dct.items() if j == max(dct.values())]
for i in res:
print(i)