結果
問題 | No.2469 Umbrella Queries |
ユーザー |
👑 ![]() |
提出日時 | 2023-09-02 00:45:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 176 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 2,016 ms |
コンパイル使用メモリ | 192,476 KB |
最終ジャッジ日時 | 2025-02-16 17:53:26 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){int T; cin >> T;assert(1 <= T && T <= 1e5);while(T--){long long N; cin >> N;assert(3 <= N && N <= 1e9);if(N % 2 == 1){cout << 0 << endl;}else{cout << N * (N / 2 - 1) << endl;}}}