結果
問題 | No.678 2Dシューティングゲームの必殺ビーム |
ユーザー | Konton7 |
提出日時 | 2019-05-11 12:49:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 763 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 10,940 KB |
実行使用メモリ | 8,360 KB |
最終ジャッジ日時 | 2023-09-14 18:06:59 |
合計ジャッジ時間 | 1,924 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
8,280 KB |
testcase_01 | AC | 16 ms
7,728 KB |
testcase_02 | AC | 17 ms
8,216 KB |
testcase_03 | AC | 16 ms
8,208 KB |
testcase_04 | WA | - |
testcase_05 | AC | 17 ms
8,168 KB |
testcase_06 | AC | 17 ms
8,264 KB |
testcase_07 | WA | - |
testcase_08 | AC | 16 ms
8,360 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 17 ms
8,180 KB |
testcase_12 | AC | 18 ms
8,296 KB |
testcase_13 | AC | 18 ms
8,192 KB |
testcase_14 | AC | 18 ms
8,176 KB |
testcase_15 | AC | 20 ms
8,356 KB |
testcase_16 | AC | 16 ms
8,216 KB |
testcase_17 | WA | - |
ソースコード
n, laser_l, laser_r = [ int(v) for v in input().split() ] object_list = [] xmax = 1280 ymax = 1680 xmin = 0 for i in range(n): xl,yu,xr,yd = [ int(v) for v in input().split() ] object_list.append([min(yd,ymax),max(xmin,xl),min(xr,xmax),i]) object_list = sorted(object_list,reverse = True) x_list = [ 0 for i in range(laser_l+1)] + [ 1 for i in range(laser_l+1,laser_r+1)] + [ 0 for i in range(laser_r+1,xmax)] hit_list = [0]*n for i in range(n): objectx = [0 for j in range(object_list[i][2]-object_list[i][1]+1)] if x_list[object_list[i][1]:object_list[i][2]+1] != objectx: hit_list[object_list[i][3]] = 1 x_list = x_list[:object_list[i][1]] + objectx + x_list[object_list[i][2]+1:] for i in range(n): print(hit_list[i])