题解列表

筛选

解决第一个HelloWorld程序

摘要:解题思路:极其简单,直接输出"Hello World!"和“*”注意事项:大小写参考代码:print("**************************")print("Hello World!"……

数字分离简单函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a;int b,c,d,e;scanf("%d",&a);b=a/1000;e=a%10;d=a/10%1……

max解决三个数找最大值

摘要:解题思路:先用map单行输入,再用max比大小。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))……

函数字符提取简单代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100];    int len,i;    gets(……

max解决三个数最大值

摘要:解题思路:看到比大小,就能想到max函数,两行解决。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))……

1173: 计算球体积

摘要:```c #include int main() { double pi=3.1415926; double r; while(~scanf("%lf",&r)) { pr……

字符串反转简单代码

摘要:解题思路:注意事项:特别注意:在for循环中,i的初始值应为len-1否则不会出来运行结果。参考代码:#include<stdio.h>#include<string.h>int main(){   ……
优质题解

1157: 亲和数

摘要:##1157: 亲和数:tw-1f366: ######这道题很简单,我写的也很简单,看一眼就懂 ###题目描述 古希腊数学家毕达哥拉斯在自然数研究中发现,220的所有真约数(即不是自身的约数)……