1115: DNA(c++代码) 摘要:```cpp #include using namespace std; void PaintDNA(int a,int b) { for(int i=1;i…… 题解列表 2022年09月11日 0 点赞 0 评论 336 浏览 评分:9.9
1116: IP判断(c++代码) 摘要:```cpp #include #include using namespace std; int main() { int q,len,t; string s; …… 题解列表 2022年09月11日 0 点赞 0 评论 382 浏览 评分:9.9
1117: K-进制数 摘要:```cpp #include using namespace std; int K; int cl(int num,int front) { int temp=0; f…… 题解列表 2022年09月11日 0 点赞 0 评论 282 浏览 评分:9.9
1118: Tom数(c++代码) 摘要:```cpp #include #include using namespace std; int main() { char *str; int tom; w…… 题解列表 2022年09月11日 0 点赞 1 评论 541 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2 摘要:简简单单,回味无穷 ```cpp #include using namespace std; int s3(int g) { return g*g*g; } int main(…… 题解列表 2022年09月11日 0 点赞 0 评论 359 浏览 评分:9.9
1121: C语言训练-8除不尽的数 摘要:只是计算 ```cpp #include using namespace std; int main() { cout…… 题解列表 2022年09月11日 0 点赞 0 评论 484 浏览 评分:9.9
贪心算法—局部最优解(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max(x,y) x>y?x:y #define V 17//移动速度 #define sk 60//技能移动距…… 题解列表 2022年09月12日 2 点赞 1 评论 1028 浏览 评分:9.9
2905: 最大值和最小值的差(max_element) 摘要:解题思路:一个最简单的思路,把输入的数扫描一遍,找到最大值和最小值,相减即可。需要注意将两个变量初始化。参考代码:#include<iostream> #include<set> using na…… 题解列表 2022年09月14日 1 点赞 0 评论 1020 浏览 评分:9.9
科创社每日一题 该题需要知道的东西 摘要:解题思路:这道题 主要考察了字符串函数的使用,在这里我给大家写一下字符串函数的模拟实现,让大家更加理解字符串函数,从而让大家使用的更舒服首先说一下字符串函数有哪些1、strlen 求字符串函数的长度2…… 题解列表 2022年09月14日 0 点赞 0 评论 395 浏览 评分:9.9
三个字符串的排序 题解 摘要:解题思路:进行的题目不是很难,只要你逻辑够清晰就能很顺利的做出来我们做过三个数比大小 有 a , b , c如果 a大于b就让 他俩的值交换,这样就可以确保a < b了然后再让a和c比较 如果a > …… 题解列表 2022年09月14日 0 点赞 0 评论 465 浏览 评分:9.9