1 solutions
-
0
C :
#include<stdio.h> void main () { int a,b,c,x; scanf("%d%d%d",&a,&b,&c); x=0; if(a>=90&&a<=100){ x=x+1; } if(b>=90&&b<=100){ x=x+1; } if(c>=90&&c<=100){ x=x+1; } printf("%d",x); }
C++ :
#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; }
Java :
import java.util.Scanner; public class Main { public static void main(String[] Args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int i = 0; if(a>=90) ++i; if(b>=90) ++i; if(c>=90) ++i; System.out.println(i); } }
Python :
n = input().split() yw = int(n[0]) sx = int(n[1]) yy = int(n[2]) m = 0 if 90 <= yw <= 100: m += 1 if 90 <= sx <= 100: m += 1 if 90 <= yy <= 100: m += 1 print(m)
- 1
Information
- ID
- 10214
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By