Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int X,R,N,L;
- int contador=0;
- char c,c1,c2,c3;
- scanf("%d;", &X);
- for(int i=0; i<X; i++){
- scanf("%d,%d,%d;", &R,&N,&L);
- if(N==3 && L<=R){
- contador++;
- }
- else if(N==4 && L<=sqrt(2)*R){
- contador++;
- }
- }
- printf("%d\n", contador);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement