
待解决
文章平均质量分 66
YYlxid
这个作者很懒,什么都没留下…
展开
-
zoj 1242 Carbon Dating
公式对了 但是提交老是错。。#include#includeint main(){ int w,d,t,ans=0; double year; while(scanf("%d%d",&w,&d)!=EOF) { if(w==0&&d==0)break; printf("Sample #%d\n", ++ans); year=5730*(log原创 2013-02-10 23:31:15 · 482 阅读 · 0 评论 -
hdu 4486 pen counts
要求求出周长为n的不同的三角个数。。如果三条边互不相等时,则个数再加1。(x,y,z; x,z,y;)假设三角形边长为x,y,z,已知z,则有x+y=n-z,x-y看别人的代码的出的理解。。还是怪怪的,希望大神能指点下~!!!! #includeusing namespace std;#includeusing namespace std;int max(int原创 2013-02-22 09:19:32 · 2763 阅读 · 0 评论 -
FOJ 1591 —— Coral的烦恼
#includeint main(){ __int64 n,i,sum,l,r; while(scanf("%I64d",&n)!=EOF) { sum=0; for(i=1;i*i<=n;i++) { sum+=n/i*i; if(i!=n/i) { l=n/(i+1)+1; r=n/i; sum+=i*(l+r)*(r-l+1)/原创 2013-08-26 18:42:28 · 717 阅读 · 0 评论 -
pat 1017. Queueing at Bank (25)
还有最后一个点没过~!!!!段错误的说~~先挂着,有空把他过了 ~~模拟题#include#include#include#includeusing namespace std;#define N 1005#define S 8*60*60#define E 17*60*60#define M 0xfffffstruct time{ int h,m,s; i原创 2013-08-27 12:56:15 · 876 阅读 · 2 评论 -
pat 1055. The World's Richest (25)
/*case 2 tle http://www.2cto.com/kf/201308/239740.html要过滤掉age〉100的数还没错*/ #include#include#include#includeusing namespace std;#define N 100005struct per{ char s[10]; int age,v;原创 2013-08-31 12:31:22 · 957 阅读 · 0 评论 -
pat 1055. The World's Richest (25)
/*case 2 tle http://www.2cto.com/kf/201308/239740.html要过滤掉age〉100的数还没做*/#include#include#include#includeusing namespace std;#define N 100005struct per{ char s[10]; int age,v;}p[N];in原创 2013-08-31 12:28:30 · 1079 阅读 · 0 评论