結果
| 問題 |
No.3146 RE: Parentheses Counting
|
| コンテスト | |
| ユーザー |
👑 potato167
|
| 提出日時 | 2025-05-16 21:43:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 465 bytes |
| コンパイル時間 | 2,638 ms |
| コンパイル使用メモリ | 195,432 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-05-16 21:43:26 |
| 合計ジャッジ時間 | 12,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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";
}
}
}
potato167