結果

問題 No.647 明太子
ユーザー Maboy
提出日時 2018-03-01 12:11:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-12-26 08:16:57
合計ジャッジ時間 10,248 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 16 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ab=[list(map(int,input().split())) for i in'.'*n]
m=int(input())
xy=[list(map(int,input().split())) for i in'.'*m]
d=[0]
for i in xy:
  c=0
  for j in ab:
    c+=((i[0]<=j[0] and i[1]>=j[1]))
  d+=[c]
for i in range(m):
  if d[i]==max(d):
    print(i)
0