题解列表
[编程入门]三个字符串的排序
摘要:解题思路:笨方法,和三个数排序地思路差不多。注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char t[100],a[100],……
(笨方法)三个数字的排序
摘要:#include
int main(){
int a,b,c,t;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
t=a;a=b;b=t;
}
……
[编程入门]电报加密
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char s[100]; gets(s); for(int i=0;s[i];i++){ if(s[i]>=……
3001: 整数的和
摘要:```cpp
#include
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
cout……
阿姆斯特朗数(C++简易版本)只需要一个空格!!!
摘要:解题思路:注意事项:参考代码:#include <iostream>#include<set>using namespace std;int main(){ int i,a=0,b=0,c=0,d=……
直接数学方法进行计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,n,r,p,m,q; scanf("%lf %lf %lf……
用临时数组代替for里面套用sum求和函数
摘要:解题思路:注意事项:参考代码:"""for里面套用sum绝对超时采用建立临时数组(存放数据的和)"""num=eval(input())list1=list(map(int,input().split……