1002简单的解法(C) 摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){int a,b,c;//定义。scanf("%d%d%d",&a,…… 题解列表 2022年09月10日 0 点赞 3 评论 314 浏览 评分:9.9
C语言最简单代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); int n; for(n=1;n<=a;n++){ int i; …… 题解列表 2022年09月10日 0 点赞 0 评论 372 浏览 评分:9.9
1115: DNA(c++代码) 摘要:```cpp #include using namespace std; void PaintDNA(int a,int b) { for(int i=1;i…… 题解列表 2022年09月11日 0 点赞 0 评论 461 浏览 评分:9.9
1116: IP判断(c++代码) 摘要:```cpp #include #include using namespace std; int main() { int q,len,t; string s; …… 题解列表 2022年09月11日 0 点赞 0 评论 515 浏览 评分: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 评论 385 浏览 评分:9.9
1118: Tom数(c++代码) 摘要:```cpp #include #include using namespace std; int main() { char *str; int tom; w…… 题解列表 2022年09月11日 0 点赞 1 评论 651 浏览 评分: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 评论 463 浏览 评分:9.9
1121: C语言训练-8除不尽的数 摘要:只是计算 ```cpp #include using namespace std; int main() { cout…… 题解列表 2022年09月11日 0 点赞 0 评论 573 浏览 评分: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 评论 1327 浏览 评分:9.9
2905: 最大值和最小值的差(max_element) 摘要:解题思路:一个最简单的思路,把输入的数扫描一遍,找到最大值和最小值,相减即可。需要注意将两个变量初始化。参考代码:#include<iostream> #include<set> using na…… 题解列表 2022年09月14日 1 点赞 0 评论 1148 浏览 评分:9.9