题解 1061: 二级C语言-计负均正

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

不需要数组,简单运算

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a=0 , n=0 , m=0;    flo……

二级C语言-计负均正

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int n[20],m=0,c=0,sum=0; float avg; for(i=0;i<2……

二级C语言-计负均正(c语言代码)

摘要:解题思路:   因为需要输入20个数,故定义一个整型数组来储存;                 用一个court来计算负数的个数,每检测到一个负数,court+1;            &n

艰难的艰难

摘要:解题思路:注意事项:参考代码:int a[20],b=0;  double bug=0;  for(int i=0;i<20;i++)  {  scanf("%d",&a[i]);  if(a[i……

通过for循环来求解

摘要:解题思路:注意事项:参考代码:list1=list(map(int,input().split()))list2=list(map(int,input().split()))list3=[]for i……

二级C语言-计负均正

摘要:解题思路:模拟注意事项:要用double参考代码:#include<bits/stdc++.h>using namespace std;long long a,fs;double zs,zh;int ……

二级C语言-计负均正

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,s;double t,t1;int main(){ for(……

如果不用两个map怎么办?

摘要:解题思路:注意事项:参考代码:s=list(map(int,input().strip().split()))x=list(map(int,input().strip().split()))coun=……