/* Codeman
Arif Khan Nihar
Uri 2355 - Brazil and Germany
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned long n;
while(cin >> n and n != 0){
double avg_g = n/90.0;
int bra,gar;
bra = floor(avg_g*1);
gar = ceil(avg_g*7);
cout << "Brasil " << bra << " x Alemanha " << gar << endl;
}
return 0;
}
Arif Khan Nihar
Uri 2355 - Brazil and Germany
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned long n;
while(cin >> n and n != 0){
double avg_g = n/90.0;
int bra,gar;
bra = floor(avg_g*1);
gar = ceil(avg_g*7);
cout << "Brasil " << bra << " x Alemanha " << gar << endl;
}
return 0;
}
No comments:
Post a Comment