Beecrowd 2355-Brazil and Germany

 avatar
kaziamir
c_cpp
2 years ago
465 B
5
Indexable
#include<bits/stdc++.h>
using namespace std;

#define ll long long
#define yes cout<<"yes"<<endl
#define no cout<<"no"<<endl
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl

void solution(){
	ll time;
	while(cin>>time && time){
		if(time<90 || time>1000000000){
			continue;
		}
		double A = (1.0/90.0)*(double)time;
		double B = (7.0/90.0)*(double)time;
	
		printf("Brasil %.0lf x Alemanha %.0lf\n", A, B);
	}
}

int main(){
	
	solution();
	
	return 0;
}
Editor is loading...