吃花椒的妙酱
吃花椒的妙酱
全部文章
题解
归档
标签
去牛客网
登录
/
注册
吃花椒的妙酱的博客
全部文章
/ 题解
(共36篇)
Values whose sum is 0
//values whose sum is 0 //二分,在三四列的数据中二分找一二列的数据 #include <iostream> #include <algorithm> using namespace std; typedef long long ll; int n;...
2021-01-20
0
637
Drying
//太恶心了,用cin过不去,换了scanf才过,调了一个多小时 //二分 #include<iostream> #include <cmath> #include <cstdio> #include <cstring> #include <al...
2021-01-20
3
554
毒瘤xor
//毒瘤xor #include <bits/stdc++.h> using namespace std; typedef long long ll; int arr[100005][34]; int b[34]; int main() { int i,n,j,t; ...
2021-01-19
1
642
逆序对,归并排序或者线段树每次加点处理即可,线段树方法在下面
//求逆序对,归并排序就好 #include <iostream> using namespace std; typedef long long ll; int n; ll cnt = 0; int a[100005], b[100005]; void print() { ...
2021-01-18
1
669
数学考试
//数学考试 //算法核心:前缀和 //本质:前缀和 //long long 被ex到了 #include <bits/stdc++.h> using namespace std; typedef long long ll; int n; ll arr[200005]; int m...
2021-01-17
1
428
土.秘法地震
//土 秘法地震 //算法:前缀和 //本质:最大子矩阵,再本质:最大连续子串 #include <bits/stdc++.h> using namespace std; typedef long long ll; int a[1005][1005];//矩阵 int mai...
2021-01-17
1
481
铺地毯
//铺地毯 //算法核心:贪心 #include <bits/stdc++.h> using namespace std; typedef long long ll; struct tana { int a,b,g,k; } t[10005];//数据用结构体存起来 in...
2021-01-16
1
468
牛吃fafa
//牛吃fafa //贪心,按照t/d排序 #include <bits/stdc++.h> using namespace std; typedef long long ll; struct cow { ll ti,d; ll flo,sum_t;//flo是数...
2021-01-16
1
448
拼数
//贪心 #include <bits/stdc++.h> using namespace std; string arr[10005];//定义string数组 bool cmp(string a,string b)//通过字符串置换比较,自定义大小比较 { return ...
2021-01-15
1
749
扫雷MINE
//扫雷MINE //枚举优化,注意到只要确定了第一个空的状态,第二空的状态也是定的,以此类推,只要看最后一个空是否合理就行 #include <iostream> #include <cstring> #include <cstdio> using name...
2021-01-15
4
638
首页
上一页
1
2
3
4
下一页
末页