結果

問題 No.647 明太子
ユーザー turner18_jpturner18_jp
提出日時 2018-03-16 08:14:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,145 ms / 4,500 ms
コード長 370 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,856 KB
実行使用メモリ 10,408 KB
最終ジャッジ日時 2023-09-09 09:42:00
合計ジャッジ時間 9,351 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 14 ms
7,828 KB
testcase_03 AC 15 ms
7,856 KB
testcase_04 AC 15 ms
7,800 KB
testcase_05 AC 15 ms
7,820 KB
testcase_06 AC 15 ms
7,820 KB
testcase_07 AC 16 ms
7,868 KB
testcase_08 AC 15 ms
7,760 KB
testcase_09 AC 37 ms
8,292 KB
testcase_10 AC 62 ms
8,280 KB
testcase_11 AC 26 ms
7,908 KB
testcase_12 AC 51 ms
8,276 KB
testcase_13 AC 101 ms
8,268 KB
testcase_14 AC 969 ms
9,968 KB
testcase_15 AC 144 ms
8,532 KB
testcase_16 AC 48 ms
8,232 KB
testcase_17 AC 1,192 ms
10,144 KB
testcase_18 AC 1,311 ms
10,104 KB
testcase_19 AC 346 ms
9,928 KB
testcase_20 AC 381 ms
9,596 KB
testcase_21 AC 150 ms
8,868 KB
testcase_22 AC 3,145 ms
10,408 KB
testcase_23 AC 16 ms
7,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [list(map(int, input().split())) for i in range(n)]
m = int(input())
b = [list(map(int, input().split())) for i in range(m)]
l = [0]*(10**3+10)

for i in a:
  for j in range(m):
    if i[0] >= b[j][0] and i[1] <= b[j][1]:
      l[j+1] += 1
temp = max(l)
if temp == 0:
  print(temp)
else:
  for i in range(len(l)):
    if l[i] == temp:
      print(i)
0