Translate

Views

Thursday, July 21, 2022

Solution Kattis - Anthony and Diablo


Link Problem: https://open.kattis.com/problems/anthonyanddiablo  


Submission 9157740

IDDATEPROBLEMSTATUSCPULANGTEST CASES
915774019:52:37Anthony and Diablo
Accepted
0.00 sC++
13/13


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: