Submission #74077950


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
typedef double db;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<int,char> pic;
typedef vector<int> vi;
typedef vector<ll> vll;
#define SZ(x) ((int)x.size())
ll ksm(ll a,ll b,ll p){if (p == 1)return 0;if (b == 0)return 1%p;
ll ans = 1;	a %= p;while (b > 0){if (b&1){ans = ans*a%p;}a = (a*a)
%p;b >>= 1;}return ans;}
const int mod = 1e9+7;
const int P = 998244353;
const ll inf = (1LL << 50LL);
const ll N = 5010;

const long double pi = 3.141592653589793;
int d;
int main(){
	cin >> d;
	cout << fixed << setprecision(14) << ((d/2.0)*(d/2.0)*pi);
		
    return 0;
}

Submission Info

Submission Time
Task A - π
User wuqize
Language C++23 (GCC 15.2.0)
Score 100
Code Size 676 Byte
Status AC
Exec Time 1 ms
Memory 3852 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 3712 KiB
00_sample_01.txt AC 1 ms 3676 KiB
00_sample_02.txt AC 1 ms 3828 KiB
01_random_00.txt AC 1 ms 3724 KiB
01_random_01.txt AC 1 ms 3792 KiB
01_random_02.txt AC 1 ms 3680 KiB
01_random_03.txt AC 1 ms 3844 KiB
01_random_04.txt AC 1 ms 3852 KiB
01_random_05.txt AC 1 ms 3816 KiB
01_random_06.txt AC 1 ms 3844 KiB