• <input id="auww4"></input>
  • <input id="auww4"><acronym id="auww4"></acronym></input>
  • <input id="auww4"><u id="auww4"></u></input>
    <object id="auww4"><acronym id="auww4"></acronym></object>
    <menu id="auww4"></menu><input id="auww4"><u id="auww4"></u></input>
    <input id="auww4"><u id="auww4"></u></input>
  • F.A.Q
    Hand In Hand
    Online Acmers
    Forum | Discuss
    Statistical Charts
    Problem Archive
    Realtime Judge Status
    Authors Ranklist
     
         C/C++/Java Exams     
    ACM Steps
    Go to Job
    Contest LiveCast
    ICPC@China
    Best Coder beta
    VIP | STD Contests
    Virtual Contests
        DIY | Web-DIY beta
    Recent Contests
    Author ID 
    Password 
     Register new ID

    為什么不對,好煩啊

    Posted by 徐徐如生天神下凡一打五... at 2019-12-10 16:10:46 on Problem 2008
    (3)  


    #include <stdio.h>
    int main()
    {
    	int a=0,b=0,c=0,n;
    	double d;
    	scanf("%d",&n);
    	
    		for(int i=n;i>0;i--)
    		{
    		
    			scanf("%lf",&d);
    			if(d>0)
    			a++;
    			else if(d==0)
    			b++;
    			else c++;
    		}
    	printf("%d %d %d",c,b,a);
    	return 0;
    }


    Post your reply here:

    Author ID
    Password
    Title
    Content  
     
    Hangzhou Dianzi University Online Judge 3.0
    Copyright © 2005-2020 HDU ACM Team. All Rights Reserved.
    Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
    Total 0.015600(s) query 5, Server time : 2020-10-14 09:03:32, Gzip enabled
    棋牌