#includemain(){ int temp,i,t,sum10,sum12,sum16; for(i=1000;i<=9999;i++) { temp=i; sum10=0; for(t=0;t<4;t++) { ...
分类:
其他好文 时间:
2015-03-29 10:39:59
阅读次数:
84
#include#include#include#include#include#define PI 3.1415927int main(void){double a,wzuu;int viuu;int n;scanf("%d",&n);while(n>0){a=n;a=a*(a+1)/6.0*(a...
分类:
其他好文 时间:
2015-03-29 10:39:28
阅读次数:
89
#include #include int shu(char a) { return (a-'0'); } int main(){ char a[1000],b[1000]; int num[1001]; int n,i,j=1,al,bl,k,t;...
分类:
其他好文 时间:
2015-03-15 07:04:20
阅读次数:
146
Problem Description 今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG,但做为集训队成员之一的野骆驼竟然不知道RPG三个人具体是谁谁。RPG给他机会让他猜猜,第一次猜:R是公主,P是草儿,G是月野兔;第二次猜:R是草儿,P是月野兔,G是公主;第三次猜:R是草儿,P是公主,G是月野兔;......可怜的野骆驼第六次终于把RPG分清楚了。由于RPG的带动,做ACM的女生...
分类:
其他好文 时间:
2015-03-04 22:52:30
阅读次数:
187
beautiful number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 136 Accepted Submission(s): 78
Problem Description
Let A=∑ni=1a...
分类:
其他好文 时间:
2015-03-01 13:19:55
阅读次数:
167
题目及代码
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem ...
分类:
其他好文 时间:
2015-02-20 14:09:40
阅读次数:
345
问题及代码
Problem Description
Once again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he can use to esca...
分类:
其他好文 时间:
2015-02-20 14:08:40
阅读次数:
271
问题及代码
Problem Description
Ignatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a straight line. The picture below shows the area. ...
分类:
其他好文 时间:
2015-02-16 15:39:08
阅读次数:
150
问题及代码:
Problem Description
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).
Input
Input consists of a sequence of lines, each containing an intege...
分类:
其他好文 时间:
2015-02-16 14:21:25
阅读次数:
297
问题及代码
Problem Description
大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!
做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。
话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在英语考试的时候,竟然把40个单项选择题全部做错了!大家都学...
分类:
其他好文 时间:
2015-02-16 14:18:24
阅读次数:
165