結果

問題 No.647 明太子
ユーザー akitsugu777akitsugu777
提出日時 2018-10-25 15:52:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,875 ms / 4,500 ms
コード長 371 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-04-29 21:37:30
合計ジャッジ時間 9,034 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 31 ms
10,752 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 31 ms
10,752 KB
testcase_09 AC 49 ms
10,752 KB
testcase_10 AC 70 ms
10,752 KB
testcase_11 AC 41 ms
10,752 KB
testcase_12 AC 64 ms
10,752 KB
testcase_13 AC 108 ms
11,136 KB
testcase_14 AC 902 ms
12,416 KB
testcase_15 AC 144 ms
11,136 KB
testcase_16 AC 60 ms
10,752 KB
testcase_17 AC 1,134 ms
12,672 KB
testcase_18 AC 1,201 ms
12,672 KB
testcase_19 AC 386 ms
12,416 KB
testcase_20 AC 402 ms
12,032 KB
testcase_21 AC 168 ms
11,392 KB
testcase_22 AC 2,875 ms
12,800 KB
testcase_23 AC 31 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
nl = [list(map(int, input().split())) for _ in range(n)]

m = int(input())
ml = [list(map(int, input().split())) for _ in range(m)]

l = [0] * (m+1)
for i, (x, y) in enumerate(ml, 1):
    for a, b in nl:
        if x <= a and y >= b:
            l[i] += 1

z = max(l)
if z == 0:
  print(z)
else:
  for i in range(len(l)):
    if l[i] == z:
      print(i)
0