結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー 💕💖💞💕💖💞
提出日時 2018-08-07 22:20:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 620 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 11,940 KB
実行使用メモリ 47,364 KB
最終ジャッジ日時 2023-10-19 22:30:51
合計ジャッジ時間 13,690 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 537 ms
47,332 KB
testcase_01 AC 534 ms
47,332 KB
testcase_02 AC 521 ms
47,332 KB
testcase_03 AC 525 ms
47,332 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
testcase_17 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n, lb, rb = map(int, input().split())

z = np.zeros( (1680,1280) ).astype(np.int16)

xs = set()

x_y_i = []
for i in range(n):
  target = i+1
  x1, y1, x2, y2 = map(int, input().split())
  x1 = max(x1,0)  
  #print(x1, x2)
  z[y2, x1:x2+1] = target
  
  xs.add( x1)
  xs.add( x2 )

  x_y_i.append( (x1, y1, i) )
  x_y_i.append( (x2, y2, i) )
match = set()
for x in xs:
  for dy in range(1680-1, 0-1, -1):
    if z[dy, x] != 0:
      #print(z[dy,x], dy, x)
      match.add( z[dy, x] )
      break
    z[dy, x] = -1

#print(match)
for i in range(n):
  if i+1 in match:
    print(1)
  else:
    print(0)
0