結果
問題 | No.2772 Appearing Even Times |
ユーザー |
👑 |
提出日時 | 2024-05-27 23:51:20 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 147 ms / 4,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 5,508 ms |
コンパイル使用メモリ | 176,640 KB |
実行使用メモリ | 43,520 KB |
最終ジャッジ日時 | 2024-12-20 20:41:59 |
合計ジャッジ時間 | 6,979 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#define MD 998244353 string@S;ll L=S.size(),p=1024,t=0,c;Mint D[L][p]{{1}},a;rep(l,1,L)rep(s,p)rep(d,10)D[l][s^1<<d]+=D[l-1][s];a=sum[l,1,L](D[l][0]-D[l-1][1]);rep(i,L){c=S[i]-48;rep(d,i<1,c)a+=D[L-1-i][t^1<<d];t^=1<<c;}wt(a+(t<1));