結果

問題 No.647 明太子
ユーザー osrgy01osrgy01
提出日時 2021-04-13 13:31:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,001 ms / 4,500 ms
コード長 443 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,864 KB
実行使用メモリ 10,828 KB
最終ジャッジ日時 2023-09-12 00:59:18
合計ジャッジ時間 10,261 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,812 KB
testcase_01 AC 15 ms
7,836 KB
testcase_02 AC 17 ms
7,864 KB
testcase_03 AC 16 ms
7,816 KB
testcase_04 AC 16 ms
7,820 KB
testcase_05 AC 15 ms
7,972 KB
testcase_06 AC 16 ms
7,808 KB
testcase_07 AC 16 ms
7,836 KB
testcase_08 AC 17 ms
7,836 KB
testcase_09 AC 39 ms
8,232 KB
testcase_10 AC 66 ms
8,228 KB
testcase_11 AC 27 ms
7,836 KB
testcase_12 AC 56 ms
8,248 KB
testcase_13 AC 103 ms
8,212 KB
testcase_14 AC 993 ms
10,536 KB
testcase_15 AC 152 ms
8,672 KB
testcase_16 AC 50 ms
8,296 KB
testcase_17 AC 1,256 ms
10,560 KB
testcase_18 AC 1,368 ms
10,540 KB
testcase_19 AC 363 ms
10,408 KB
testcase_20 AC 393 ms
9,988 KB
testcase_21 AC 154 ms
8,884 KB
testcase_22 AC 3,001 ms
10,828 KB
testcase_23 AC 18 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=zip(*[[*map(int,input().split())] for _ in range(int(input()))])
x,y=zip(*[[*map(int,input().split())] for _ in range(int(input()))])
cnt=[0]*len(x)
for i in range(len(a)):
    for j in range(len(x)):
        if a[i]>=x[j] and b[i]<=y[j]:
            cnt[j]+=1
max_num=0
for i in range(len(x)):
    max_num=max(max_num,cnt[i])
if max_num==0:
    print(0)
else:
    for i in range(len(x)):
        if cnt[i]==max_num:
            print(i+1)
0