結果

問題 No.647 明太子
ユーザー kawacchukawacchu
提出日時 2019-10-10 00:58:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-04-29 09:00:02
合計ジャッジ時間 13,410 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 WA -
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 29 ms
10,624 KB
testcase_05 AC 29 ms
10,624 KB
testcase_06 AC 29 ms
10,752 KB
testcase_07 AC 29 ms
10,624 KB
testcase_08 AC 30 ms
10,624 KB
testcase_09 AC 62 ms
10,624 KB
testcase_10 AC 96 ms
10,880 KB
testcase_11 AC 44 ms
10,752 KB
testcase_12 AC 81 ms
10,752 KB
testcase_13 AC 149 ms
10,752 KB
testcase_14 AC 1,435 ms
11,776 KB
testcase_15 AC 219 ms
10,880 KB
testcase_16 AC 78 ms
10,752 KB
testcase_17 AC 1,810 ms
11,904 KB
testcase_18 AC 1,944 ms
12,032 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 3,854 ms
12,160 KB
testcase_23 AC 32 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
AB = [tuple(map(int,input().split())) for i in range(N)]
M = int(input())
XY = [tuple(map(int,input().split())) for i in range(M)]

C = [0]*M
for a,b in AB :
    for i, xy in enumerate(XY) :
        x,y = xy
        if a >= x and b <= y :
            C[i] += 1

MAX = max(1,max(C))
for i,c in enumerate(C) :
    if c == MAX :
        print(i+1)
0