Problems Description
编程实现从键盘任意输入20items整数,统计非负数items数,并计算非负数之和。
Input格式
<p> 首先输入一items整数K ,表示下面有K行。 </p> <p> 接下来的K行,每行<span style="line-height:1.5;">输入20items整数。</span> </p>
Output格式
输出和和items数。以空格points隔。
Sample
Sample Input 1
1
28 49 -31 -11 39 -8 33 26 19 36 -14 -39 -31 -43 25 37 25 -43 -36 -2
Sample Output 1
317 10
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪