字符排列问题 注意:这里要用到next_permutation函数,这个函数用来求全排列用法:next_permutation(s.begin(),s.end())```cpp#include#include#includeusingnamespacestd;intmain(){strings;intnum;cin 题解列表 2025年01月01日 0 点赞 0 评论 511 浏览 评分:0.0
直接解决,少写一点点 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main ( ){ printf("%d %d",sizeof(float), sizeof(double) ) ;}…… 题解列表 2024年12月31日 1 点赞 0 评论 826 浏览 评分:0.0
约瑟夫环比出圈更高大上啊(但是太简单了) 摘要:解题思路:标记淘汰,首尾相连,很简单注意事项:参考代码:#include<stdio.h> int main(void) { int n, m,i; while(scanf("…… 题解列表 2024年12月31日 0 点赞 0 评论 466 浏览 评分:0.0
如此简单竟然有脸为中等题 摘要:#include<stdio.h> int main(void) { int i, n, foot, sum = 0, count = 0; while(scanf("%d %…… 题解列表 2024年12月31日 1 点赞 0 评论 548 浏览 评分:0.0
2025元旦快乐,马原背了吗 摘要:解题思路:#include<stdio.h> int factsum(int n); int judge(int a,int b); int main(void) { int a, …… 题解列表 2024年12月31日 0 点赞 0 评论 454 浏览 评分:0.0
这尼玛太简单了啊 摘要:#include<stdio.h> int judge(int n); int cube(int n); int main(void) { int i; for(i = 2…… 题解列表 2024年12月31日 0 点赞 0 评论 502 浏览 评分:0.0
1231杨辉三角,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int a[100][100]={1}; while(scanf("%d",…… 题解列表 2024年12月31日 1 点赞 0 评论 1117 浏览 评分:10.0
数位 dp #2493: 信息学奥赛一本通T1589-不要 62(c++) 有注释 ```#includeusingnamespacestd;constintN=35;//I位数字且最高位是J的答案数量intf[N][10];voidinit(){//1位数字的情况下只要没4就可以for(inti=0;ir,l||r){cout 题解列表 2024年12月31日 0 点赞 0 评论 513 浏览 评分:0.0
太简单了啊 摘要:#include<stdio.h> int main(void) { int h = 100; int n; float sum = 0; scanf("%…… 题解列表 2024年12月30日 0 点赞 0 评论 659 浏览 评分:2.0
c++找最大数序列 摘要:解题思路: 选取字符串中数字将其排除二维数组,并将二维数组中各个最大值放入一个一维数组中。再在一维数组中取出最大值。注意事项: 使用isdigit(c)判断是否数字。 #includ…… 题解列表 2024年12月30日 0 点赞 0 评论 751 浏览 评分:0.0