結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー lloyzlloyz
提出日時 2022-07-12 22:01:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 89,588 KB
最終ジャッジ日時 2023-09-06 00:54:50
合計ジャッジ時間 3,369 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
89,308 KB
testcase_01 AC 103 ms
89,296 KB
testcase_02 AC 103 ms
88,976 KB
testcase_03 AC 99 ms
89,164 KB
testcase_04 AC 122 ms
89,232 KB
testcase_05 AC 109 ms
89,396 KB
testcase_06 AC 111 ms
89,192 KB
testcase_07 AC 102 ms
89,456 KB
testcase_08 AC 114 ms
89,348 KB
testcase_09 AC 108 ms
89,320 KB
testcase_10 AC 105 ms
89,300 KB
testcase_11 AC 115 ms
89,096 KB
testcase_12 AC 113 ms
89,412 KB
testcase_13 AC 114 ms
89,316 KB
testcase_14 AC 116 ms
89,160 KB
testcase_15 AC 114 ms
89,328 KB
testcase_16 AC 108 ms
89,588 KB
testcase_17 AC 110 ms
89,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

F = [[0 for _ in range(1280)] for _ in range(1680)]
n, l, r = map(int, input().split())
for idx in range(n):
    xl, yu, xr, yd = map(int, input().split())
    for i in range(max(0, yu - 1), min(1680, yd)):
        for j in range(max(0, xl - 1), min(1280, xr)):
            F[i][j] = idx + 1

ANS = [0 for _ in range(n)]
for j in range(max(l - 1, 0), r):
    for i in range(1679, -1, -1):
        if F[i][j] != 0:
            ANS[F[i][j] - 1] = 1
            break
print(*ANS, sep='\n')
0