自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char…… 题解列表 2023年07月04日 0 点赞 0 评论 182 浏览 评分:0.0
Who's in the Middle 摘要:解题思路:利用数组,冒泡排序注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,j; int arr[10000]; scanf("%ll…… 题解列表 2023年07月04日 0 点赞 0 评论 243 浏览 评分:0.0
编写题解 2790: 分段函数if--else 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float a,y; scanf("%f",&a); if(a<5){ y=-…… 题解列表 2023年07月04日 0 点赞 0 评论 280 浏览 评分:0.0
编写题解 2791: 计算邮资向上取整 摘要:解题思路:注意事项:500克整数倍参考代码:#include <stdio.h>int main(){ int x,y; char z; scanf("%d %c",&x,&z); …… 题解列表 2023年07月04日 0 点赞 0 评论 187 浏览 评分:0.0
2791: 计算邮资 摘要: #include int main() { int a,b,m; char c; scanf("%d %c",&a,&c); if(a1000) { …… 题解列表 2023年07月04日 0 点赞 0 评论 285 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数(三种方法) 摘要:解题思路:注意事项:参考代码: 方法一:#include <stdio.h>/*输入两个正整数m和n,求其最大公约数和最小公倍数。*/int m1011(){ int m,n; int mm=0,ss…… 题解列表 2023年07月05日 0 点赞 0 评论 212 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> /* 输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的…… 题解列表 2023年07月05日 0 点赞 0 评论 182 浏览 评分:0.0
机器翻译(队列写法) 摘要:解题思路:按照队列的思想依次引入单词,并附加st来记录单词是否已经学过。注意事项:参考代码:#include<iostream>#include<algorithm>#include<queue>#i…… 题解列表 2023年07月05日 0 点赞 0 评论 279 浏览 评分:0.0
1042题 :电报加密 摘要:# 自己写的代码 ```c #include #include int main() { char a[20]; gets(a); int len; len=strlen…… 题解列表 2023年07月05日 0 点赞 0 评论 182 浏览 评分:0.0