基础题
文章平均质量分 79
vtfghs
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu1006
#include using namespace std; const int MAXN = 12 * 60 * 60; const double s = 6;//秒针的角速度为6°/s const double m = 1.0 / 10;//分针的角速度为1/10°/s const double h = 1.0 / 120;//时针的角速度为1/120°/s const double ms =原创 2017-04-06 12:09:47 · 530 阅读 · 0 评论 -
Cantor表
Cantor表 1999年NOIP全国联赛普及组 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 白银 Silver 题解 题目描述 Description 现代数学的著名证明之一是Georg Cantor证明了有理数是可枚举的。他是用下面这一张表来证明这一命题的: 1/1 1/2 1/3 1/4 1/5 … 2/1 2/2 2/3 2/4 … 3/1 3/2 3/3原创 2016-12-12 21:58:44 · 1205 阅读 · 0 评论 -
POJ1007过河问题 贪心||DP
#include #include using namespace std; int main(){ int T; cin >> T; int n; int a[1007];//穿梭速度 //贪心 while(T--){ cin >> n; for(int i = 0; i < n; i++)原创 2017-04-15 23:29:43 · 350 阅读 · 0 评论 -
hdu1018
//hdu1018 //Big Number //题意:计算阶乘的位数 #include #include #include using namespace std; const int MAXN = 1e7 + 7; int num[MAXN]; const double PI = 3.1415926; int main(){ ios::sync_with_stdio(false)原创 2017-04-21 13:51:27 · 243 阅读 · 0 评论 -
hdu1016
//hdu1016 //PE 每组数据最后一行不能有空格 #include #include #include #include using namespace std; int n; bool used[21]; int ans[21]; int prime[50]; void Prime(){ memset(prime, -1, sizeof(prime)); prim原创 2017-04-21 13:55:14 · 283 阅读 · 0 评论 -
Codeforces 801C
Codeforces 801C 题意:有n个设备,每个设备每单位时间内耗电a[i],其初始电量为b[i]。现有一个单线充电器,每单位时间内可以充电p单位,且可以在任意时间(包括实数)内拔充。 当设备电量为0时,停止工作,如果所有设备都可一直工作下去,输出-1,临界条件0也属于可以一直工作下去的范畴,否则,输出所有设备都同时工作的最大时间。原创 2017-04-21 21:36:46 · 347 阅读 · 0 评论
分享