結果

問題 No.647 明太子
コンテスト
ユーザー nohakai3
提出日時 2022-07-30 11:21:26
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 1,987 ms / 4,500 ms
コード長 346 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 328 ms
コンパイル使用メモリ 20,700 KB
実行使用メモリ 36,056 KB
最終ジャッジ日時 2026-04-02 21:56:52
合計ジャッジ時間 8,910 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n=int(input())
l=[list(map(int,input().split())) for i in range(n)]
m=int(input())
c=[0]*m


for i in range(m):
    p,s=map(int,input().split())
    t=0
    for j in range(n):
        if p<=l[j][0] and s>=l[j][1]:
            t+=1
    c[i]=t

if sum(c)==0:
    print(0)
else:
    for i in range(m):
        if c[i]==max(c):
            print(i+1)
0