摘要:        
#include #define N 10000unsigned g[N];unsigned sum_of_digits(unsigned n)//用递归函数方法对n的每位数字进行相加{	if(nN||g[next]!=next)//g[next]!=next成立说明...    阅读全文
posted @ 2017-05-09 20:55
衣带渐宽、为伊憔悴
阅读(157)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include using namespace std;int main(){	int n,i,x,y,z,ans;	while(cin>>n&&n>0)	{ ans=z=0; for(i=0;i>x>>y; ans+=(y-z)*x; z=y; }	...    阅读全文
posted @ 2017-05-09 17:42
衣带渐宽、为伊憔悴
阅读(149)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include #include using namespace std;int main(){	const double DISTANCE=4.50;	while(true)//初始默认为while重复循环	{ int n; scanf("%d",&n); ...    阅读全文
posted @ 2017-05-09 17:31
衣带渐宽、为伊憔悴
阅读(137)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include #include #define M_PI 3.1415926int num_props;float x,y;int i;double calc;int years;int main(){	scanf("%d",&num_props);	for(i=...    阅读全文
posted @ 2017-05-09 12:20
衣带渐宽、为伊憔悴
阅读(128)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include using namespace std;const int maxp=2000,n=10000;int prime[maxp],total=0;bool isprime(int k)//bool函数用来求素数{	for(int i=0;i>m; w...    阅读全文
posted @ 2017-05-09 12:03
衣带渐宽、为伊憔悴
阅读(423)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include using namespace std;int main(){	int i,j,n,count,a[20];	cin>>a[0];	while(a[0]!=-1)	{ n=1; for(;;n++) { cin>>a[n]; if(a[...    阅读全文
posted @ 2017-05-09 11:14
衣带渐宽、为伊憔悴
阅读(108)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include using namespace std;int main(){ double avg,sum=0.0,a[12]={0}; int i; for(i=0;i>a[i]; sum+=a[i]; } avg=s...    阅读全文
posted @ 2017-05-09 10:38
衣带渐宽、为伊憔悴
阅读(100)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号