Link Problem: https://open.kattis.com/problems/anthonyanddiablo
Files submitted
anthonyanddiablo.cpp
#include<bits/stdc++.h>
#define PI 3.1415926
using namespace std;
int main(){
double a, n;
cin >> a >> n;
double r= n/(2*PI);
if (r*r*PI >= a) cout<<"Diablo is happy!";
else cout<<"Need more materials!";
}
No comments:
Post a Comment