题解列表
自定义函数求一元二次方程
摘要:解题思路:废话不多说,直接看代码注意事项:▲ < 0 时,方程没有实数根,但是会有2个共轭复根参考代码:#include<stdio.h>#include<math.h>void q_gen(doub……
信息学奥赛一本通T1264-合唱队形
摘要:解题思路:双向最长上升/下降子序列注意事项:参考代码:#include<iostream>
#include<algorithm>
using namespace std;
const int ……
python--study||O.o
摘要:参考代码:#每个草丛只能是1个'#'或2个'#'
dx = (-1, 0, 1, 0)
dy = (0, -1, 0, 1)
def f(x, y):
……
有点小难,但不多(自信)
摘要:思路:代码:#include <stdio.h>
int main(void) {
float C,F;
scanf("%f", &F); //用来输出实数,……
虽然能通过不过我感觉输入一些数答案不是质数!!!例如输入50会输出25!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; scanf("%d",&n); for(i=2;i<n;i++) ……
蓝桥杯2017年第八届真题-k倍区间 前缀和
摘要:解题思路:#include <iostream>
using namespace std;
typedef long long ll;
const int N = 1e5 + 10;
……
信息学奥赛一本通T1263-友好城市
摘要:解题思路:转化为最长不下降子序列注意事项:参考代码:#include<iostream>
#include<utility>
#include<algorithm>
using namespac……
究极空间换时间之无脑枚举
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5+10;int a0[N],a1[N],a2[N],a……