题解列表
1019运用递归的思想,简直easy。
摘要:解题思路:运用递归的思想,简直easy。注意事项:参考代码:#include<stdio.h>double luodi(double m ,double n){ if(n==1) return……
编写题解 2787: 有一门课不及格的学生
摘要:解题思路:两个恰好有一个,联想到异或门,当两变量不同时为一,相同时为零注意事项:参考代码:a,b=map(int,input().strip().split())if (a>=60)^(b>=60)=……
编写题解 2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,a=0,b=0,c=0;int j……
2798: 整数序列的元素最大跨度值题解
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1e……
树型dp #2484: 信息学奥赛一本通T1579-皇宫看守(c++) 不是很详细..
摘要:```
#include
#include
#include
using namespace std;
const int N = 1510;
int n;
int h[N]……
编写题解 2798: 整数序列的元素最大跨度值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn……
编写题解 2796: 求整数的和与均值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for……
for循环和while循环
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char x[1000]; char s[……
递归自然最好用-计算t=1+1/2+1/3+...+1/n
摘要:解题思路:递归注意事项:参考代码:#include<stdio.h>double h(int i){ if(i==1) { return 1.0; } else ……