1381 - Scientific ExperimentTime Limit: 20 SecMemory Limit: 256 MB题目连接http://www.lightoj.com/volume_showproblem.php?problem=1381DescriptionJohn wants ...
分类:
其他好文 时间:
2015-05-25 07:25:32
阅读次数:
152
扩展欧几里得
通解:x+B/GCD*k,y+A/GCD*k
先缩小x1,x2范围,再缩y
#include
using namespace std;
void extgcd(long long a,long long b,long long &d,long long &x,long long &y)//return d=gcd(a,b)(==a*x+b*y)
{
if(!b)
...
分类:
其他好文 时间:
2015-05-23 18:26:41
阅读次数:
105
1430 - A Question of Time
#include
using namespace std;
//fun()=3600*(2*h0-hx)+60*(2*m0-13*mx)+2*s0
//13*sx=fun()
//13*sx=fun()+360*120
//13*sx=fun()-360*120
const double eps=1e-10;
const double e...
分类:
其他好文 时间:
2015-05-20 18:36:53
阅读次数:
120
light oj Beginners Problems
1000+1001+1006+1008+1010+1015+1022+1042+1045+1053+1069+1072+1107+1109+1113+1116+1133+1136+1182+1189+1202+1211+1212+1214+1216+1225+1227+1241+1249+1261+1294+1305+1311+1331+1338+1354+1387+1414+1433...
分类:
其他好文 时间:
2015-05-20 09:49:52
阅读次数:
194
light oj Basic Math 数论基础
1020 1078 1148 1179 1275 1297 1323 1349 1369 1410 1430...
分类:
其他好文 时间:
2015-05-19 22:46:30
阅读次数:
300
light oj Beginners Problems
1000+1001+1006+1008+1010+1015+1022+1042+1045+1053+1069+1072+1107+1109+1113+1116+1133+1136+1182+1189+1202+1211+1212+1214+1216+1225+1227+1241+1249+1261+1294+1305+1311+1331+1338+1354+1387+1414+1433...
分类:
其他好文 时间:
2015-05-18 09:18:30
阅读次数:
233
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=27130
万圣节来了,Gappu 需要挨个参加 N 个聚会,聚会需要装扮成一些类似于 Superman 一样的角色,Gappu 需要准备足够的衣服,他可以在一件衣服外面套一件一份,如果之后他需要用到穿在里面的衣服就可以脱去外面的衣服,但 Gappu 有洁癖,对于脱去的衣服...
分类:
其他好文 时间:
2015-05-17 13:50:58
阅读次数:
124
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=27130万圣节来了,Gappu 需要挨个参加 N 个聚会,聚会需要装扮成一些类似于 Superman 一样的角色,Gappu 需要准备足够的衣服,他可以在一件衣服外面套一件一份,...
分类:
其他好文 时间:
2015-05-17 12:09:52
阅读次数:
115