結果

問題 No.647 明太子
ユーザー ああいいああいい
提出日時 2022-05-19 09:27:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 165 ms / 4,500 ms
コード長 442 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 81,696 KB
実行使用メモリ 76,528 KB
最終ジャッジ日時 2023-10-17 17:35:09
合計ジャッジ時間 3,702 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,468 KB
testcase_01 AC 37 ms
53,468 KB
testcase_02 AC 36 ms
53,468 KB
testcase_03 AC 37 ms
53,468 KB
testcase_04 AC 38 ms
53,468 KB
testcase_05 AC 37 ms
53,468 KB
testcase_06 AC 38 ms
53,468 KB
testcase_07 AC 44 ms
59,584 KB
testcase_08 AC 48 ms
59,596 KB
testcase_09 AC 57 ms
63,696 KB
testcase_10 AC 65 ms
66,724 KB
testcase_11 AC 55 ms
64,616 KB
testcase_12 AC 66 ms
68,712 KB
testcase_13 AC 85 ms
73,164 KB
testcase_14 AC 143 ms
76,384 KB
testcase_15 AC 89 ms
73,688 KB
testcase_16 AC 60 ms
66,664 KB
testcase_17 AC 161 ms
76,420 KB
testcase_18 AC 165 ms
76,492 KB
testcase_19 AC 98 ms
76,216 KB
testcase_20 AC 99 ms
76,420 KB
testcase_21 AC 80 ms
72,996 KB
testcase_22 AC 129 ms
76,528 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
import sys
if m == 0:
    print(0)
    exit()
for i in range(M):
    if dat[i] == m:
        print(i + 1)
0