結果

問題 No.647 明太子
ユーザー ああいいああいい
提出日時 2022-05-19 09:25:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 396 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 81,840 KB
実行使用メモリ 76,572 KB
最終ジャッジ日時 2023-10-17 17:32:03
合計ジャッジ時間 3,443 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,448 KB
testcase_01 AC 37 ms
53,448 KB
testcase_02 WA -
testcase_03 AC 37 ms
53,448 KB
testcase_04 AC 37 ms
53,448 KB
testcase_05 AC 37 ms
53,448 KB
testcase_06 AC 37 ms
53,448 KB
testcase_07 AC 44 ms
59,580 KB
testcase_08 AC 44 ms
59,596 KB
testcase_09 AC 54 ms
63,696 KB
testcase_10 AC 62 ms
66,724 KB
testcase_11 AC 55 ms
64,616 KB
testcase_12 AC 64 ms
68,712 KB
testcase_13 AC 81 ms
73,152 KB
testcase_14 AC 145 ms
76,388 KB
testcase_15 AC 88 ms
73,676 KB
testcase_16 AC 61 ms
66,664 KB
testcase_17 AC 159 ms
76,416 KB
testcase_18 AC 163 ms
76,492 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 125 ms
76,536 KB
testcase_23 AC 54 ms
64,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
member = []
for _ in range(N):
    a,b = map(int,input().split())
    member.append((a,b))
M = int(input())
dat = [0] * M
m = -1
for _ in range(M):
    x,y = map(int,input().split())
    count = 0
    for a,b in member:
        if x <= a and y >= b:
            count += 1
    dat[_] = count
    if count > m:m = count
for i in range(M):
    if dat[i] == m:
        print(i + 1)
0