結果

問題 No.2469 Umbrella Queries
ユーザー 👑 tute7627tute7627
提出日時 2023-09-02 00:45:09
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 2,338 ms
コンパイル使用メモリ 198,844 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-09-17 19:30:09
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 173 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
    }
  }

}
0