上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: Geometry DartsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 688Accepted Submission(s): 178Proble... 阅读全文
posted @ 2014-07-15 22:45 SprayT 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 爆头Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1561Accepted Submission(s): 653Problem Descripti... 阅读全文
posted @ 2014-07-15 17:50 SprayT 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 白书上部分代码#include #include #include #include using namespace std;const double esp = 1e-10;struct Point{ double x,y; Point(double x = 0,double y = ... 阅读全文
posted @ 2014-07-15 16:08 SprayT 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 集训开始啦 阅读全文
posted @ 2014-07-13 23:19 SprayT 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 貌似就是排序。。。。#include#include#includeusing namespace std;#define N 2000struct tt{ int score,net_goal,total_ball; char team[N];} a[N];char stra[N],s... 阅读全文
posted @ 2013-12-05 14:42 SprayT 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 本来是做hdu2838的,但貌似涉及到逆序数这个概念,于是就学习了下,后来求逆序数可以用归并排序,也就顺带把这个排序学了下(其实早就该掌握的),搞acm真的是学无止境啊! 对于n个元素,一般规定有一个标准排列(貌似大部分都是以一个递增的排列为准)对于这n个元素如果与标准排列的先后顺序不同,就说... 阅读全文
posted @ 2013-12-03 22:50 SprayT 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 二进制的多重背包CoinsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5564Accepted Submission(s): 2297Probl... 阅读全文
posted @ 2013-11-24 23:07 SprayT 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 背包题,不过要注意是n#include#define N 250005int max(int a,int b){ return a>b?a:b;}int dp[N];struct tt{ int w,num;}a[105];int main(){ int n,i,j,k; w... 阅读全文
posted @ 2013-11-24 19:20 SprayT 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 开始wa了几次后来重写一次就A了不知坑在哪#include#include#define N 1000int a[N],b[N],sum[N];int lena,lenb,len,flag,c;char s[N];void init(){ memset(a,0,sizeof(a)); m... 阅读全文
posted @ 2013-10-30 11:24 SprayT 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Summation of Four PrimesInput: standard inputOutput: standard outputTime Limit: 4 secondsEuler proved in one of his classic theorems that prime numbers are infinite in number. But can every number be expressed as a summation of four positive primes? I don’t know the answer. May be you can help!!! I 阅读全文
posted @ 2013-09-04 22:00 SprayT 阅读(247) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页