結果
| 問題 | No.3790 Unlabeled Slime Trees |
| コンテスト | |
| ユーザー |
DeltaStruct
|
| 提出日時 | 2026-09-22 12:18:45 |
| 言語 | C++23(gnu拡張) (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 336 bytes |
| 記録 | |
| コンパイル時間 | 2,716 ms |
| コンパイル使用メモリ | 340,476 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-11-06 20:58:05 |
| 合計ジャッジ時間 | 4,402 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/modint>
using mint = atcoder::modint998244353;
int main(){
int n; cin >> n;
mint dp = 0;
for (int i(3);i <= n;++i){
mint t = mint(2).pow(i-1);
dp = dp*t*(t/2);
dp -= (t/4-1)*(t/2)*(t/2);
dp += (t/2+1)*(t/2)/2-1;
}
cout << (dp+1).val() << endl;
}
DeltaStruct