結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー lloyzlloyz
提出日時 2022-07-12 21:58:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 475 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 89,428 KB
最終ジャッジ日時 2023-09-06 00:49:56
合計ジャッジ時間 3,699 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
89,272 KB
testcase_01 AC 138 ms
89,412 KB
testcase_02 AC 136 ms
89,324 KB
testcase_03 AC 138 ms
89,260 KB
testcase_04 AC 132 ms
88,852 KB
testcase_05 AC 112 ms
89,408 KB
testcase_06 AC 115 ms
89,280 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 116 ms
89,428 KB
testcase_15 AC 112 ms
89,136 KB
testcase_16 AC 120 ms
89,400 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

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(1280):
    for i in range(1679, -1, -1):
        if F[i][j] != 0:
            ANS[F[i][j] - 1] = 1
            break
print(*ANS, sep='\n')
0