結果

問題 No.647 明太子
ユーザー cande398cande398
提出日時 2018-05-15 02:36:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,992 KB
実行使用メモリ 9,760 KB
最終ジャッジ日時 2023-09-10 20:56:22
合計ジャッジ時間 7,048 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 17 ms
7,852 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,912 KB
testcase_04 AC 16 ms
7,876 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 16 ms
7,824 KB
testcase_07 AC 16 ms
7,804 KB
testcase_08 AC 16 ms
7,844 KB
testcase_09 AC 33 ms
7,828 KB
testcase_10 AC 52 ms
7,856 KB
testcase_11 AC 27 ms
7,868 KB
testcase_12 AC 44 ms
7,864 KB
testcase_13 AC 78 ms
8,220 KB
testcase_14 AC 671 ms
9,540 KB
testcase_15 AC 112 ms
8,252 KB
testcase_16 AC 43 ms
7,812 KB
testcase_17 AC 851 ms
9,580 KB
testcase_18 AC 894 ms
9,664 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2,107 ms
9,760 KB
testcase_23 AC 20 ms
7,872 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
for i in range(M):
	if A[i] == max(A):
		print(i+1)	
0