結果

問題 No.647 明太子
ユーザー nohakai3nohakai3
提出日時 2022-07-30 11:21:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 261 ms / 4,500 ms
コード長 346 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 78,408 KB
最終ジャッジ日時 2023-09-27 13:27:48
合計ジャッジ時間 4,337 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,336 KB
testcase_01 AC 60 ms
71,204 KB
testcase_02 AC 61 ms
71,280 KB
testcase_03 AC 61 ms
71,512 KB
testcase_04 AC 61 ms
71,380 KB
testcase_05 AC 64 ms
71,316 KB
testcase_06 AC 59 ms
71,360 KB
testcase_07 AC 90 ms
75,780 KB
testcase_08 AC 71 ms
75,856 KB
testcase_09 AC 83 ms
76,068 KB
testcase_10 AC 88 ms
77,188 KB
testcase_11 AC 80 ms
76,776 KB
testcase_12 AC 90 ms
77,068 KB
testcase_13 AC 101 ms
76,992 KB
testcase_14 AC 226 ms
78,212 KB
testcase_15 AC 112 ms
77,964 KB
testcase_16 AC 83 ms
76,988 KB
testcase_17 AC 261 ms
78,408 KB
testcase_18 AC 261 ms
78,340 KB
testcase_19 AC 130 ms
78,076 KB
testcase_20 AC 118 ms
78,312 KB
testcase_21 AC 102 ms
78,156 KB
testcase_22 AC 242 ms
78,348 KB
testcase_23 AC 76 ms
77,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=[list(map(int,input().split())) for i in range(n)]
m=int(input())
c=[0]*m


for i in range(m):
    p,s=map(int,input().split())
    t=0
    for j in range(n):
        if p<=l[j][0] and s>=l[j][1]:
            t+=1
    c[i]=t

if sum(c)==0:
    print(0)
else:
    for i in range(m):
        if c[i]==max(c):
            print(i+1)
0