結果
問題 | No.2752 文字列の数え上げ mod 998244353 |
ユーザー | tomo0608 |
提出日時 | 2024-05-10 22:16:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 418 ms / 2,000 ms |
コード長 | 131 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 76,380 KB |
最終ジャッジ日時 | 2024-05-10 22:16:51 |
合計ジャッジ時間 | 3,845 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 34 ms
52,188 KB |
testcase_01 | AC | 33 ms
53,372 KB |
testcase_02 | AC | 32 ms
51,996 KB |
testcase_03 | AC | 32 ms
52,576 KB |
testcase_04 | AC | 33 ms
52,052 KB |
testcase_05 | AC | 31 ms
52,076 KB |
testcase_06 | AC | 32 ms
52,368 KB |
testcase_07 | AC | 34 ms
52,088 KB |
testcase_08 | AC | 35 ms
52,360 KB |
testcase_09 | AC | 32 ms
52,808 KB |
testcase_10 | AC | 33 ms
52,252 KB |
testcase_11 | AC | 33 ms
51,624 KB |
testcase_12 | AC | 32 ms
52,320 KB |
testcase_13 | AC | 32 ms
52,372 KB |
testcase_14 | AC | 32 ms
51,852 KB |
testcase_15 | AC | 34 ms
52,156 KB |
testcase_16 | AC | 33 ms
52,224 KB |
testcase_17 | AC | 33 ms
52,616 KB |
testcase_18 | AC | 33 ms
52,348 KB |
testcase_19 | AC | 32 ms
52,632 KB |
testcase_20 | AC | 276 ms
76,228 KB |
testcase_21 | AC | 394 ms
76,048 KB |
testcase_22 | AC | 418 ms
76,380 KB |
testcase_23 | AC | 409 ms
76,244 KB |
testcase_24 | AC | 396 ms
75,960 KB |
ソースコード
t = int(input()) mod = 998244353 for _ in range(t): n = int(input()) ans = ((pow(26, n, mod)-1) * 26 * 319438193)%mod print(ans)