結果

問題 No.647 明太子
ユーザー kept1994kept1994
提出日時 2022-05-04 23:22:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 527 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 78,444 KB
最終ジャッジ日時 2023-09-17 04:31:04
合計ジャッジ時間 4,441 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
70,960 KB
testcase_01 AC 64 ms
71,016 KB
testcase_02 WA -
testcase_03 AC 64 ms
71,040 KB
testcase_04 AC 60 ms
70,872 KB
testcase_05 AC 62 ms
71,024 KB
testcase_06 AC 62 ms
70,948 KB
testcase_07 AC 72 ms
75,372 KB
testcase_08 AC 71 ms
75,244 KB
testcase_09 AC 78 ms
75,348 KB
testcase_10 AC 88 ms
77,352 KB
testcase_11 AC 76 ms
76,628 KB
testcase_12 AC 83 ms
76,732 KB
testcase_13 AC 99 ms
78,028 KB
testcase_14 AC 154 ms
77,668 KB
testcase_15 AC 109 ms
77,916 KB
testcase_16 AC 84 ms
76,632 KB
testcase_17 AC 177 ms
77,540 KB
testcase_18 AC 177 ms
77,476 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 131 ms
77,748 KB
testcase_23 AC 77 ms
76,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    N = int(input())
    ab = []
    for _ in range(N):
        a, b = map(int, input().split())
        ab.append((a, b))
    M = int(input())
    l = [0] * M
    for i in range(M):
        x, y = map(int, input().split())
        for _, q in enumerate(ab):
            a, b = q
            if x <= a and y >= b:
                l[i] += 1
    m = max(l)
    for i, ll in enumerate(l):
        if ll == m:
            print(i + 1)
    return

if __name__ == '__main__':
    main()
0