結果

問題 No.647 明太子
コンテスト
ユーザー matrie
提出日時 2020-12-08 09:41:04
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 2,116 ms / 4,500 ms
+ 976µs
コード長 297 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 291 ms
コンパイル使用メモリ 21,280 KB
実行使用メモリ 16,888 KB
最終ジャッジ日時 2026-08-29 15:25:43
合計ジャッジ時間 9,571 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = int(input())
l = [list(map(int,input().split())) for _ 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