top1编程
← 返回题目
题解

【入门】有几门功课是A

1 条题解

  • 0
    @ 2026-7-28 22:09:45
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        int x,y,z,c = 0;
        cin>>x>>y>>z;
        if(x >= 90){
        	c++;
    	}
    	
    	if(y >= 90){
    		c++;
    	}
    	
    	if(z >= 90){
    		c++;
    	} 
    	
    	cout<<c;
    }
    
    • 1