题解列表
数位dp#2491: 信息学奥赛一本通T1587-Windy 数(C++)
摘要:```
#include
using namespace std;
const int N =11;
///一共有I位,最高位是J的windy数的个数
int f[N][10];……
有较大数是用long(全部)
摘要:#include<stdio.h>
int judge(long n);
int main(void)
{
int i;
for(i = 0; i <= 200000; i+……
数位 dp #2493: 信息学奥赛一本通T1589-不要 62(c++) 有注释
摘要:```
#include
using namespace std;
const int N =35;
//I位数字且最高位是J的答案数量
int f[N][10];
voi……
2025元旦快乐,马原背了吗
摘要:解题思路:#include<stdio.h>
int factsum(int n);
int judge(int a,int b);
int main(void)
{
int a, ……
如此简单竟然有脸为中等题
摘要:#include<stdio.h>
int main(void)
{
int i, n, foot, sum = 0, count = 0;
while(scanf("%d %……
约瑟夫环比出圈更高大上啊(但是太简单了)
摘要:解题思路:标记淘汰,首尾相连,很简单注意事项:参考代码:#include<stdio.h>
int main(void)
{
int n, m,i;
while(scanf("……