結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,260 KB
testcase_01 AC 78 ms
76,280 KB
testcase_02 AC 74 ms
76,452 KB
testcase_03 AC 74 ms
76,476 KB
testcase_04 AC 75 ms
76,480 KB
testcase_05 AC 76 ms
76,212 KB
testcase_06 AC 76 ms
76,264 KB
testcase_07 AC 86 ms
78,560 KB
testcase_08 WA -
testcase_09 AC 100 ms
79,372 KB
testcase_10 AC 105 ms
79,484 KB
testcase_11 AC 93 ms
79,220 KB
testcase_12 AC 103 ms
79,588 KB
testcase_13 AC 123 ms
79,772 KB
testcase_14 AC 221 ms
80,620 KB
testcase_15 AC 124 ms
79,912 KB
testcase_16 AC 99 ms
79,480 KB
testcase_17 AC 264 ms
80,800 KB
testcase_18 AC 267 ms
81,180 KB
testcase_19 AC 158 ms
79,856 KB
testcase_20 AC 164 ms
79,808 KB
testcase_21 AC 115 ms
79,788 KB
testcase_22 AC 239 ms
81,024 KB
testcase_23 AC 91 ms
79,336 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]==0:
 print 0
else:
 for i in xrange(len(res)):
  print res[i]
 
0