結果

問題 No.647 明太子
ユーザー brthyyjpbrthyyjp
提出日時 2020-06-17 03:31:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 4,500 ms
コード長 500 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 76,948 KB
最終ジャッジ日時 2023-09-16 11:16:51
合計ジャッジ時間 4,309 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,424 KB
testcase_01 AC 71 ms
71,132 KB
testcase_02 AC 71 ms
71,280 KB
testcase_03 AC 70 ms
71,280 KB
testcase_04 AC 74 ms
71,172 KB
testcase_05 AC 69 ms
71,360 KB
testcase_06 AC 69 ms
71,312 KB
testcase_07 AC 76 ms
75,792 KB
testcase_08 AC 77 ms
76,008 KB
testcase_09 AC 80 ms
76,016 KB
testcase_10 AC 83 ms
76,544 KB
testcase_11 AC 81 ms
76,688 KB
testcase_12 AC 86 ms
76,452 KB
testcase_13 AC 89 ms
76,684 KB
testcase_14 AC 165 ms
76,740 KB
testcase_15 AC 93 ms
76,888 KB
testcase_16 AC 80 ms
76,588 KB
testcase_17 AC 194 ms
76,876 KB
testcase_18 AC 194 ms
76,688 KB
testcase_19 AC 96 ms
76,764 KB
testcase_20 AC 98 ms
76,664 KB
testcase_21 AC 86 ms
76,708 KB
testcase_22 AC 147 ms
76,948 KB
testcase_23 AC 81 ms
76,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline

n = int(input())
AB = [0]*n
for i in range(n):
    a, b = map(int, input().split())
    AB[i] = (a, b)
m = int(input())
V = [0]*m
for i in range(m):
    x, y = map(int, input().split())
    temp = 0
    for j in range(n):
        a, b = AB[j]
        if x <= a and y >= b:
            temp += 1
    V[i] = temp
v = max(V)
if v == 0:
    print(0)
    exit()
ans = []
for i in range(m):
    if V[i] == v:
        ans.append(i+1)
for i in ans:
    print(i)
0