上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 50 下一页
摘要: A New Ground Heating Device UVALive - 7675 终于补了这道圆的面积交... 虽然还没仔细看模板,先收着吧=_= 等打完区域赛好好琢磨一下~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 const do 阅读全文
posted @ 2017-10-23 22:58 yijiull 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 星期几问题 1 /* 2 * 已知1752年9月3日是Sunday,并且日期控制在1700年2月28日后 3 */ 4 char name[][15] = { "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "s 阅读全文
posted @ 2017-10-23 13:09 yijiull 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 编辑距离 51Nod - 1183 补一道经典dp问题~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1010; 4 5 char s[maxn], p[maxn]; 6 int dp[maxn][maxn 阅读全文
posted @ 2017-10-22 22:57 yijiull 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Ellipse HDU - 1724 emmm...快比赛了先补几个模板~ 自适应辛普森积分 Ellipse HDU - 1724 Ellipse emmm...快比赛了先补几个模板~ 自适应辛普森积分 1 #include <bits/stdc++.h> 2 using namespace std 阅读全文
posted @ 2017-10-22 22:29 yijiull 阅读(211) 评论(0) 推荐(0) 编辑
摘要: To xor or not to xor SGU - 275 线性基求异或最大值~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define LL long long 4 const int maxn = 110; 5 LL a[maxn 阅读全文
posted @ 2017-10-22 09:38 yijiull 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 最大的位或 HDU - 5969 中文题~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define LL long long 4 int main(){ 5 LL a, b; 6 int t; 7 //freopen("in.txt", 阅读全文
posted @ 2017-10-21 20:50 yijiull 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目链接:here Convex HDU - 5979 可能是最水的一道题了,用了很麻烦的做法..... Find Small A HDU - 5980 签到题 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define LL long l 阅读全文
posted @ 2017-10-21 18:53 yijiull 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Regular Number HDU - 5972 题意: 用到了bitset和Shift-And匹配算法 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 5e6+10; 4 bitset<1010> B[11 阅读全文
posted @ 2017-10-21 17:22 yijiull 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Bear and Destroying Subtrees CodeForces - 643E 看了很久,稍微理解了一点... 代码转自czk dp[v][h]表示以v为祖先的子树最大高度为h时的概率 1 #include <iostream> 2 #include <cstdio> 3 #inclu 阅读全文
posted @ 2017-10-20 18:33 yijiull 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Java大数 1 import java.util.*; 2 import java.math.*; 3 4 public class Main { 5 public static void main(String args[]) { 6 int a = 102; 7 BigInteger x = 阅读全文
posted @ 2017-10-20 18:10 yijiull 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 50 下一页