結果

問題 No.647 明太子
ユーザー caleicalei
提出日時 2020-01-25 19:25:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 424 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 10,820 KB
実行使用メモリ 14,080 KB
最終ジャッジ日時 2023-10-12 04:41:53
合計ジャッジ時間 12,857 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,188 KB
testcase_01 AC 15 ms
7,752 KB
testcase_02 AC 14 ms
8,104 KB
testcase_03 AC 15 ms
7,748 KB
testcase_04 AC 15 ms
7,960 KB
testcase_05 AC 14 ms
7,860 KB
testcase_06 AC 15 ms
7,956 KB
testcase_07 AC 16 ms
7,868 KB
testcase_08 AC 15 ms
7,760 KB
testcase_09 AC 42 ms
7,840 KB
testcase_10 AC 75 ms
8,312 KB
testcase_11 AC 28 ms
7,820 KB
testcase_12 AC 65 ms
8,216 KB
testcase_13 AC 122 ms
8,168 KB
testcase_14 AC 1,191 ms
9,476 KB
testcase_15 AC 172 ms
8,212 KB
testcase_16 AC 58 ms
8,308 KB
testcase_17 AC 1,431 ms
9,408 KB
testcase_18 AC 1,619 ms
9,444 KB
testcase_19 AC 329 ms
9,280 KB
testcase_20 AC 337 ms
9,068 KB
testcase_21 AC 134 ms
8,616 KB
testcase_22 TLE -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.647 明太子 2020/01/25

n=int(input())
ab=[tuple(map(int,input().split())) for _ in range(n)]
m=int(input())
xy=[tuple(map(int,input().split())) for _ in range(m)]

ans=[0]*m
MAX=0
for i in range(m):
    x,y=xy[i]
    for a,b in ab:
        if x<=a and b<=y:
            ans[i]+=1
            MAX=max(MAX,ans[i])
if MAX==0:
    print(0)
    exit()

for i in range(m):
    if ans[i]==MAX:
        print(i+1) 
0