摘要: 打表找规律 打表发现第五项205开始,后一项减前一项的差值(第二排),再与之后的差值做差值,值都是28. 最终结果: 阅读全文
posted @ 2019-04-19 15:25 域Anton 阅读(143) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 using namespace std; 3 4 int n, m, q; 5 struct node { 6 int v; // 节点权值 7 int r; // 右侧节点在arr[]中的位置 8 int d; // 下侧节点在arr[]中的位置 9 阅读全文
posted @ 2019-04-19 11:46 域Anton 阅读(187) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cstdio> using namespace std; typedef long long ll; ll dp[1000005]; // 第i天为晴天的概率 ll mod = 998244353; ll mulMod(ll a, ll b 阅读全文
posted @ 2019-04-18 16:43 域Anton 阅读(197) 评论(0) 推荐(0)
摘要: //适用于正负整数 // 输入 template inline bool read(T &ret) { char c; int sgn; if(c = getchar(), c == EOF) return 0; while (c != '-' && (c '9')) c = getchar(); sgn = (c == '-') ? -1 : 1; r... 阅读全文
posted @ 2019-04-18 15:19 域Anton 阅读(161) 评论(0) 推荐(0)