結果
| 問題 | No.3563 No T-Junctions in Kyoto |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-25 07:46:13 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 3,479 ms |
| コンパイル使用メモリ | 331,748 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-29 18:39:07 |
| 合計ジャッジ時間 | 7,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| 部分点1 | 10 % | AC * 11 |
| 満点 | 90 % | AC * 11 RE * 32 |
| 合計 | 10 点 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(cin.failbit);
int H, W;
cin >> H >> W;
assert(1 <= min(H, W) && max(H, W) <= 3'000);
assert(H == 1);
int N = H * W - 1;
long long ans = 1, mod = 998244353;
while (N--) {
ans += ans;
if (ans >= mod) ans -= mod;
}
cout << ans << endl;
return 0;
}