Battle of Brains, 2018 University of Dhaka's Internal Programming Contest B. Vibranium Gift Solution

  Solution in C++:

///**********ALLAH IS ALMIGHTY************///

///AH Tonmoy

///Department of CSE,23rd batch

///Islamic University,Bangladesh  

#include<bits/stdc++.h>

using namespace std;

const double pi=acos(-1.0);

int main()

{

    int t,i;

    cin>>t;

    for(i=1;i<=t;i++)

    {

        double m,d,r,v;

        cin>>m>>d;

        v=m/d;

        printf("Case %d: %.4lf\n",i,pow(pow(3.0*v/(4.0*pi),1.0/3),2)*4.0*pi);

    }

}

No comments

Most View Post

Recent post

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.