結果

問題 No.647 明太子
ユーザー matriematrie
提出日時 2020-12-08 09:41:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,954 ms / 4,500 ms
コード長 297 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 11,836 KB
実行使用メモリ 12,132 KB
最終ジャッジ日時 2023-10-17 17:00:56
合計ジャッジ時間 10,533 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,056 KB
testcase_01 AC 28 ms
10,056 KB
testcase_02 AC 28 ms
10,056 KB
testcase_03 AC 29 ms
10,056 KB
testcase_04 AC 29 ms
10,056 KB
testcase_05 AC 28 ms
10,056 KB
testcase_06 AC 28 ms
10,056 KB
testcase_07 AC 29 ms
10,060 KB
testcase_08 AC 29 ms
10,060 KB
testcase_09 AC 55 ms
10,176 KB
testcase_10 AC 82 ms
10,164 KB
testcase_11 AC 42 ms
10,076 KB
testcase_12 AC 66 ms
10,204 KB
testcase_13 AC 116 ms
10,296 KB
testcase_14 AC 980 ms
11,748 KB
testcase_15 AC 161 ms
10,372 KB
testcase_16 AC 64 ms
10,148 KB
testcase_17 AC 1,193 ms
11,876 KB
testcase_18 AC 1,299 ms
11,824 KB
testcase_19 AC 389 ms
11,736 KB
testcase_20 AC 429 ms
11,404 KB
testcase_21 AC 168 ms
10,672 KB
testcase_22 AC 2,954 ms
12,132 KB
testcase_23 AC 35 ms
10,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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