結果
問題 |
No.2469 Umbrella Queries
|
ユーザー |
![]() |
提出日時 | 2023-08-08 22:36:24 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 172 ms / 2,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 2,002 ms |
コンパイル使用メモリ | 191,860 KB |
最終ジャッジ日時 | 2025-02-16 00:11:27 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ll t; cin >> t; for (int i = 0; i < t; i++){ ll n; cin >> n; if (n & 1){ cout << 0 << endl; } else{ cout << n * (n - 2) / 2 << endl;; } } }