题解列表
Hello World 代码
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hell……
2791: 计算邮资
摘要: #include
int main()
{
int a,b,m;
char c;
scanf("%d %c",&a,&c);
if(a1000)
{
……
编写题解 2791: 计算邮资向上取整
摘要:解题思路:注意事项:500克整数倍参考代码:#include <stdio.h>int main(){ int x,y; char z; scanf("%d %c",&x,&z); ……
编写题解 2790: 分段函数if--else
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float a,y; scanf("%f",&a); if(a<5){ y=-……
Who's in the Middle
摘要:解题思路:利用数组,冒泡排序注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,j; int arr[10000]; scanf("%ll……
自定义函数之字符串反转
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char……