結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー pluto77pluto77
提出日時 2018-04-30 08:38:44
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 671 ms
コンパイル使用メモリ 6,592 KB
実行使用メモリ 6,116 KB
最終ジャッジ日時 2023-09-10 08:19:13
合計ジャッジ時間 2,418 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,088 KB
testcase_01 AC 15 ms
5,860 KB
testcase_02 AC 12 ms
5,884 KB
testcase_03 AC 11 ms
5,860 KB
testcase_04 AC 13 ms
5,944 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 20 ms
5,988 KB
testcase_12 AC 21 ms
5,924 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki678

N,xLB,xRB=map(int,raw_input().split())
XL,YU,XR,YD=[],[],[],[]
for i in xrange(N):
 xl,yu,xr,yd=map(int,raw_input().split())
 XL.append(xl)
 YU.append(yu)
 XR.append(xr)
 YD.append(yd)
res=[0]*N
for x in xrange(xLB,xRB+1):
 v=[]
 for i in xrange(N):
  if XL[i]<=x and x<=XR[i]:
   v.append([-YD[i],i])
  v.sort()
  if len(v):
   res[v[0][1]]=1
for i in xrange(N):
 print res[i]
0