結果

問題 No.647 明太子
ユーザー sekiya9311sekiya9311
提出日時 2018-02-09 22:40:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 9,160 KB
最終ジャッジ日時 2023-08-27 02:16:11
合計ジャッジ時間 9,543 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,776 KB
testcase_01 AC 16 ms
7,772 KB
testcase_02 WA -
testcase_03 AC 17 ms
7,772 KB
testcase_04 AC 17 ms
7,776 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,908 KB
testcase_07 AC 17 ms
7,840 KB
testcase_08 AC 17 ms
7,852 KB
testcase_09 AC 40 ms
8,300 KB
testcase_10 AC 65 ms
8,240 KB
testcase_11 AC 28 ms
7,856 KB
testcase_12 AC 54 ms
8,184 KB
testcase_13 AC 115 ms
8,276 KB
testcase_14 AC 987 ms
8,796 KB
testcase_15 AC 147 ms
8,312 KB
testcase_16 AC 51 ms
8,280 KB
testcase_17 AC 1,229 ms
9,012 KB
testcase_18 AC 1,352 ms
8,824 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2,920 ms
9,160 KB
testcase_23 AC 19 ms
7,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

a = [0 for i in range(N)]
b = [0 for i in range(N)]

for i in range(N):
    a[i], b[i] = list(map(int, input().split()))

M = int(input())

x = [0 for i in range(M)]
y = [0 for i in range(M)]
for i in range(M):
    x[i], y[i] = list(map(int, input().split()))

cnt = [0 for i in range(M)]

for i in range(N):
    for j in range(M):
        if x[j] <= a[i] and y[j] >= b[i]:
            cnt[j] += 1
ma = 0
for i in range(M):
    ma = max(ma, cnt[i])
ans = []
for i in range(M):
    if ma == cnt[i]:
        ans.append(i)

for idx in ans:
    print(idx + 1)
0