結果

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

ソースコード

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+1):
  if d[i]==max(d):
    print(i)
0