結果

問題 No.647 明太子
ユーザー pluto77pluto77
提出日時 2018-05-04 15:30:10
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 424 bytes
コンパイル時間 1,054 ms
コンパイル使用メモリ 77,640 KB
実行使用メモリ 81,184 KB
最終ジャッジ日時 2023-09-10 09:37:46
合計ジャッジ時間 5,347 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
76,200 KB
testcase_01 AC 73 ms
76,196 KB
testcase_02 AC 74 ms
76,216 KB
testcase_03 AC 74 ms
76,404 KB
testcase_04 AC 74 ms
76,344 KB
testcase_05 AC 76 ms
76,192 KB
testcase_06 AC 75 ms
76,372 KB
testcase_07 AC 110 ms
78,464 KB
testcase_08 AC 86 ms
78,880 KB
testcase_09 AC 98 ms
79,248 KB
testcase_10 AC 103 ms
79,488 KB
testcase_11 AC 94 ms
79,308 KB
testcase_12 AC 104 ms
79,364 KB
testcase_13 AC 122 ms
79,784 KB
testcase_14 AC 221 ms
80,724 KB
testcase_15 AC 127 ms
79,796 KB
testcase_16 AC 100 ms
79,320 KB
testcase_17 AC 263 ms
80,796 KB
testcase_18 AC 269 ms
81,184 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 238 ms
80,952 KB
testcase_23 AC 89 ms
79,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki647
n=int(raw_input())
ab=[map(int,raw_input().split()) for i in xrange(n)]
m=int(raw_input())
xy=[map(int,raw_input().split()) for i in xrange(m)]
cnt=[0 for i in xrange(m)]
for i in xrange(m):
 for j in xrange(n):
  if xy[i][0]<=ab[j][0] and xy[i][1]>=ab[j][1]:
   cnt[i]+=1
res=[]
for i in xrange(m):
 if cnt[i]==max(cnt):
  res.append(i+1)
if cnt==[0]:
 print 0
else:
 for i in xrange(len(res)):
  print res[i]
  
 
0