<sub id="rzv5b"><dfn id="rzv5b"><mark id="rzv5b"></mark></dfn></sub><address id="rzv5b"><nobr id="rzv5b"><menuitem id="rzv5b"></menuitem></nobr></address>

<sub id="rzv5b"><var id="rzv5b"><ins id="rzv5b"></ins></var></sub>

              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

              數值統計

              Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
              Total Submission(s): 180537    Accepted Submission(s): 84924


              Problem Description
              統計給定的n個數中,負數、零和正數的個數。
               

              Input
              輸入數據有多組,每組占一行,每行的第一個數是整數n(n<100),表示需要統計的數值的個數,然后是n個實數;如果n=0,則表示輸入結束,該行不做處理。
               

              Output
              對于每組輸入數據,輸出一行a,b和c,分別表示給定的數據中負數、零和正數的個數。
               

              Sample Input
              6 0 1 2 3 -1 0 5 1 2 3 4 0.5 0
               

              Sample Output
              1 2 3 0 0 5
               

              Author
              lcy
               

              Source
               

              Recommend
              JGShining
               

              Statistic | Submit | Discuss | Note
              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.000000(s) query 1, Server time : 2020-10-10 19:01:33, Gzip enabled
              百人牛牛下载