题解列表
1782: 找出最长的字符串来
摘要:注意事项:字符串相等不能用'=',要用strcpy(x,y),将数组y赋给x;计算数组长度用strlen()!!都需要声名 <string.h>!!参考代码:#include<stdi……
一维数组解决,嘿嘿嘿,我就爱写点超级简单好理解的题解
摘要:解题思路:解题思路啊,我就是当初想多了其他前辈们解决其他题目的想法而已,size其实可以没有来着这题,我一直就是想要用一维数组解决而已思路就下面这个啊/*1 a[0]=11 1 a[0]=1 a[……
1866: 三位数反转
摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True: try: a = list(input()) b = a[::-1] ……
少年 无爱可破情局 无情方可破全局
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义全局变量
int n, m, a[110], sum[110];……
递归自然最好用-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)
摘要:解题思路:递归注意事项:参考代码:#include<stdio.h>double h(int i){ if(i==1) { return 1.0; } else ……
递归自然最好用-计算t=1+1/2+1/3+...+1/n
摘要:解题思路:递归注意事项:参考代码:#include<stdio.h>double h(int i){ if(i==1) { return 1.0; } else ……
for循环和while循环
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char x[1000]; char s[……
编写题解 2796: 求整数的和与均值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for……
编写题解 2798: 整数序列的元素最大跨度值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn……