結果

問題 No.1620 Substring Sum
ユーザー pluto77pluto77
提出日時 2022-02-28 16:28:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 857 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2023-09-21 00:52:41
合計ジャッジ時間 14,571 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,880 KB
testcase_01 AC 16 ms
7,724 KB
testcase_02 AC 17 ms
7,780 KB
testcase_03 AC 16 ms
7,716 KB
testcase_04 AC 854 ms
8,364 KB
testcase_05 AC 853 ms
8,240 KB
testcase_06 AC 849 ms
8,268 KB
testcase_07 AC 848 ms
8,316 KB
testcase_08 AC 846 ms
8,352 KB
testcase_09 AC 813 ms
8,188 KB
testcase_10 AC 844 ms
8,280 KB
testcase_11 AC 833 ms
8,400 KB
testcase_12 AC 264 ms
8,116 KB
testcase_13 AC 772 ms
8,332 KB
testcase_14 AC 799 ms
8,388 KB
testcase_15 AC 702 ms
8,152 KB
testcase_16 AC 495 ms
8,292 KB
testcase_17 AC 666 ms
8,284 KB
testcase_18 AC 16 ms
7,740 KB
testcase_19 AC 15 ms
7,880 KB
testcase_20 AC 846 ms
8,368 KB
testcase_21 AC 857 ms
8,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1620
mod=998244353
s=input()
res=0
for i in range(len(s)):
 x=int(s[i])
 res+=pow(11,len(s)-i-1,mod)*x*pow(2,i,mod)
 res%=mod
print(res)
0