結果

問題 No.647 明太子
ユーザー liny_tailliny_tail
提出日時 2020-09-18 12:49:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 9,132 KB
最終ジャッジ日時 2023-09-04 08:47:41
合計ジャッジ時間 8,625 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,824 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,896 KB
testcase_04 AC 16 ms
7,740 KB
testcase_05 AC 16 ms
7,884 KB
testcase_06 AC 16 ms
7,812 KB
testcase_07 AC 17 ms
7,860 KB
testcase_08 AC 17 ms
7,848 KB
testcase_09 AC 35 ms
7,952 KB
testcase_10 AC 55 ms
7,836 KB
testcase_11 AC 25 ms
7,840 KB
testcase_12 AC 48 ms
7,892 KB
testcase_13 AC 88 ms
8,328 KB
testcase_14 AC 793 ms
8,916 KB
testcase_15 AC 123 ms
8,368 KB
testcase_16 AC 45 ms
8,348 KB
testcase_17 AC 997 ms
9,004 KB
testcase_18 AC 1,072 ms
9,084 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2,402 ms
9,132 KB
testcase_23 AC 19 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input().strip())
A, B = [], []
for i in range(N):
  tmp = list(map(int, input().split()))
  A.append(tmp[0])
  B.append(tmp[1])

M = int(input().strip())
X, Y = [], []
for i in range(M):
  tmp = list(map(int, input().split()))
  X.append(tmp[0])
  Y.append(tmp[1])

lst = [0] * M

for n in range(len(X)):
  x, y = X[n], Y[n]
  for a, b in zip(A, B):
    if x <= a and y >= b:
      lst[n] += 1

m = max(lst)
for n, i in enumerate(lst):
  if i == m and m > 0:
    print(n+1)
0