1002: [编程入门]三个数最大值c++代码 摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[…… 题解列表 2023年02月09日 0 点赞 0 评论 304 浏览 评分:9.9
自定义函数之数字分离(这样也行) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen…… 题解列表 2023年02月09日 0 点赞 0 评论 245 浏览 评分:9.9
自定义函数之字符串反转(除了hellow word 外简单的代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int n = strl…… 题解列表 2023年02月09日 0 点赞 0 评论 259 浏览 评分:9.9
C语言训练-"水仙花数"问题1 简单解法 摘要:解题思路: 一 if else嵌套使用 二 明确求输入数字的各个位数上的数字的方法: 1.结合整形数据类型与除法求特定位数上的数字 …… 题解列表 2023年02月10日 0 点赞 0 评论 263 浏览 评分:9.9
1334: [NOIP2004]合唱队形 摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in…… 题解列表 2023年02月10日 0 点赞 0 评论 318 浏览 评分:9.9
编写题解 1117: K-进制数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long LL;LL n,k,res;LL fac(in…… 题解列表 2023年02月10日 0 点赞 0 评论 238 浏览 评分:9.9
去掉空格(太折磨了,但这个代码大家都看得懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; char ch; int i = 0,coun…… 题解列表 2023年02月10日 0 点赞 0 评论 253 浏览 评分:9.9
计算(a+b)/c的值 (c++) 摘要:解题思路:先定义整数a,b,c,用cout输出(a+b)/c的值,就可以提交代码了。参考代码:#include<iostream>//导入头文件using namespace std;int main…… 题解列表 2023年02月10日 0 点赞 0 评论 672 浏览 评分:9.9
计算(a+b)*c的值 (c++) 摘要:解题思路:先设置变量a,b,c,再输入变量,最后输出(a+b)*c的值注意事项:a+b要带括号参考代码:#include<iostream>//导入头文件using namespace std;int…… 题解列表 2023年02月10日 0 点赞 0 评论 338 浏览 评分:9.9
挑战这道题最复杂的题解! 摘要:解题思路:这个题不难,但是我写的很复杂。通过调用两个函数来计算是第几天,大家略看一下就能懂。注意事项:我这种写法太浪费时间,看看就好,还是建议用两个数组代替我这两个函数。参考代码:#include<s…… 题解列表 2023年02月10日 0 点赞 0 评论 223 浏览 评分:9.9