結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー pluto77pluto77
提出日時 2018-09-08 09:03:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 882 ms
コンパイル使用メモリ 6,612 KB
実行使用メモリ 6,068 KB
最終ジャッジ日時 2023-08-21 16:58:54
合計ジャッジ時間 2,415 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,872 KB
testcase_01 AC 12 ms
6,060 KB
testcase_02 AC 12 ms
5,952 KB
testcase_03 AC 11 ms
5,872 KB
testcase_04 AC 12 ms
6,068 KB
testcase_05 AC 13 ms
5,848 KB
testcase_06 AC 15 ms
5,804 KB
testcase_07 AC 14 ms
5,980 KB
testcase_08 AC 17 ms
6,056 KB
testcase_09 AC 15 ms
6,068 KB
testcase_10 AC 19 ms
5,932 KB
testcase_11 AC 19 ms
5,924 KB
testcase_12 AC 19 ms
5,804 KB
testcase_13 AC 27 ms
5,928 KB
testcase_14 AC 27 ms
5,900 KB
testcase_15 AC 45 ms
5,924 KB
testcase_16 AC 16 ms
5,924 KB
testcase_17 AC 28 ms
5,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki678

n,lb,rb=map(int,raw_input().split())
f=[-1 for i in xrange(1281)]
a=[-1 for i in xrange(1281)]
for i in xrange(n):
 xl,yu,xr,yd=map(int,raw_input().split())
 if xl<0: xl=0
 if xr>1280: xr=1280
 if yd>1680: yd=1680
 for j in xrange(xl,xr+1):
  if f[j]<yd:
   f[j]=yd
   a[j]=i
for i in xrange(n):
 for j in xrange(1281):
  if j>=lb and j<=rb:
   if a[j]==i:
    print 1
    break
  if j==1280:
   print 0
0