結果

問題 No.2469 Umbrella Queries
ユーザー LyricalMaestro
提出日時 2025-08-16 00:32:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 282 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2025-08-16 00:32:19
合計ジャッジ時間 1,710 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/2469


def solve(N):
    if N % 2 != 0:
        return 0
    
    return (N - 2) * (N // 2)

def main():
    T = int(input())
    answers = []
    for _ in range(T):
        N = int(input())
        ans = solve(N)
        answers.append(ans)
    
    for ans in answers:
        print(ans)




if __name__ == "__main__":
    main()
0