結果

問題 No.647 明太子
ユーザー cande398cande398
提出日時 2018-05-15 02:38:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,139 ms / 4,500 ms
コード長 334 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 11,008 KB
実行使用メモリ 9,760 KB
最終ジャッジ日時 2023-09-10 20:56:29
合計ジャッジ時間 7,124 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,944 KB
testcase_01 AC 15 ms
7,848 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 16 ms
7,808 KB
testcase_04 AC 15 ms
7,952 KB
testcase_05 AC 16 ms
7,932 KB
testcase_06 AC 17 ms
7,840 KB
testcase_07 AC 17 ms
7,868 KB
testcase_08 AC 17 ms
7,932 KB
testcase_09 AC 34 ms
7,800 KB
testcase_10 AC 54 ms
7,840 KB
testcase_11 AC 27 ms
7,888 KB
testcase_12 AC 44 ms
7,840 KB
testcase_13 AC 81 ms
8,320 KB
testcase_14 AC 675 ms
9,528 KB
testcase_15 AC 109 ms
8,304 KB
testcase_16 AC 42 ms
7,768 KB
testcase_17 AC 832 ms
9,568 KB
testcase_18 AC 919 ms
9,472 KB
testcase_19 AC 256 ms
9,448 KB
testcase_20 AC 277 ms
9,216 KB
testcase_21 AC 108 ms
8,484 KB
testcase_22 AC 2,139 ms
9,760 KB
testcase_23 AC 21 ms
7,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
D = []
for _ in range(N):
	A, B = map(int, input().split())
	D.append([A, B])
M = int(input())
A = [0 for _ in range(M)]
for i in range(M):
	X, Y = map(int, input().split())
	for L in D:
		if X <= L[0] and Y >= L[1]:
			A[i] += 1
if max(A) == 0:
	print(0)
else:
	for i in range(M):
		if A[i] == max(A):
			print(i+1)	
0