結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 36 ms
53,468 KB
testcase_02 WA -
testcase_03 AC 36 ms
53,468 KB
testcase_04 WA -
testcase_05 AC 36 ms
53,468 KB
testcase_06 WA -
testcase_07 AC 42 ms
59,584 KB
testcase_08 AC 43 ms
59,596 KB
testcase_09 AC 54 ms
63,696 KB
testcase_10 AC 67 ms
66,724 KB
testcase_11 AC 54 ms
64,616 KB
testcase_12 AC 63 ms
68,712 KB
testcase_13 AC 81 ms
73,152 KB
testcase_14 AC 142 ms
76,384 KB
testcase_15 AC 83 ms
73,672 KB
testcase_16 AC 58 ms
66,664 KB
testcase_17 AC 155 ms
76,416 KB
testcase_18 AC 158 ms
76,492 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 110 ms
76,436 KB
testcase_23 AC 52 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