摘要:
#include<bits/stdc++.h> #define inf 0x3f3f3f3f #define ll long long #define MAX 1000001 const ll N = 1e5+7; const ll mod = 1e9+7; using namespace std; 阅读全文
摘要:
A-串 法一:动态规划构造法 #include<bits/stdc++.h> #define inf 0x3f3f3f3f #define ll long long #define MAX 1000001 const int N = 5e6+7; const int MOD = 1e9+7; usi 阅读全文
摘要:
A. Red-Blue Shuffle 这题求问概率没啥好说的,首位决定一切,比较首位个数。 B. Move and Turn 竖着走以后只能横着走,横着走以后只能竖着走。 开始像暴力搜索,然后炸了。炸了以后开始找规律。 按他的说法打表,打出来以后按奇偶位找规律。 打表代码如下 ll id=0; s 阅读全文
摘要:
#include<bits/stdc++.h> #define inf 0x3f3f3f3f #define ll long long using namespace std; const int N=1e5+7; int g[600][600],n,m; int main(){ int t;cin 阅读全文
摘要:
没啥好说的,当时打线段树打太慢了,差一个查询没打出来。 #include<bits/stdc++.h> #define inf 0x3f3f3f3f #define ll long long using namespace std; const int N=2e5+7; const ll mod = 阅读全文