結果

問題 No.647 明太子
ユーザー FVRChanFVRChan
提出日時 2018-05-05 13:25:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,169 ms / 4,500 ms
コード長 525 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,900 KB
実行使用メモリ 10,424 KB
最終ジャッジ日時 2023-09-10 10:25:02
合計ジャッジ時間 7,295 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,816 KB
testcase_01 AC 17 ms
7,864 KB
testcase_02 AC 16 ms
8,292 KB
testcase_03 AC 17 ms
7,860 KB
testcase_04 AC 15 ms
7,856 KB
testcase_05 AC 15 ms
7,920 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 16 ms
7,860 KB
testcase_08 AC 17 ms
7,920 KB
testcase_09 AC 33 ms
8,284 KB
testcase_10 AC 50 ms
8,240 KB
testcase_11 AC 23 ms
7,820 KB
testcase_12 AC 43 ms
8,220 KB
testcase_13 AC 80 ms
8,228 KB
testcase_14 AC 695 ms
10,012 KB
testcase_15 AC 114 ms
8,568 KB
testcase_16 AC 40 ms
8,264 KB
testcase_17 AC 901 ms
10,276 KB
testcase_18 AC 947 ms
10,240 KB
testcase_19 AC 275 ms
9,944 KB
testcase_20 AC 288 ms
9,636 KB
testcase_21 AC 118 ms
8,940 KB
testcase_22 AC 2,169 ms
10,424 KB
testcase_23 AC 18 ms
7,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ab=[list(map(int,input().split())) for i in range(int(input()))]
xy=[list(map(int,input().split()))+[0,i+1] for i in range(int(input()))]
#print(ab)
#print(xy)
for w in ab:
    for v in xy:
        if w[0]>=v[0] and w[1]<=v[1]:
            v[2]+=1
mv=max([v[2] for v in xy])
if mv==0:
    print(0)
    exit()
xy.sort(key=lambda x:x[2],reverse=True)
counter=0
while True:
    try:
        if xy[counter][2]==mv:
            print(xy[counter][3])
            counter+=1
        else:
            break
    except:
        break
0