結果
問題 |
No.3146 RE: Parentheses Counting
|
ユーザー |
👑 ![]() |
提出日時 | 2025-05-16 21:43:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 465 bytes |
コンパイル時間 | 1,955 ms |
コンパイル使用メモリ | 195,524 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-05-16 21:43:25 |
合計ジャッジ時間 | 10,937 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 43 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define all(p) p.begin(), p.end() #define rep(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #include<atcoder/modint> using mint = atcoder::modint998244353; int main(){ int T; cin >> T; while (T--){ int N; cin >> N; if (N & 1){ cout << "0\n"; } else{ mint n = N / 2; cout << (n * (n - 1) / 2).val() << "\n"; } } }