atcoder abc242 c题 1111gal password
题目
思路
当前位的1 - 9 推出下一位的个数。累加计数求和
每一个位置都可以推出 {−1,0,−1}+x\{-1, 0, -1 \} + x{−1,0,−1}+x的值
代码
#include <bits/stdc++.h>
using namespace std;
const int Mod = 998244353, N = 1e6 + 111;
int n, m, f[N][10];
int main() {
cin >> n;
for (int i =
原创
2022-03-05 22:16:26 ·
1000 阅读 ·
3 评论