Submission #74073637
Source Code Expand
#include <bits/stdc++.h>
#define ll long long
const ll N = 2e5 + 5, MOD = 998244353, inf = 2e18;
using namespace std;
int dx[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
char di[] = {'R', 'L', 'D', 'U'};
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template<class T>
using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>;
void Ebraam() {
ios_base::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("Input.txt", "r", stdin);
freopen("Output.txt", "w", stdout);
#endif
}
void solve() {
ll x;
cin >> x;
const double pi = acos(-1);
cout << fixed << setprecision(15) << 0.25 * x * pi * x;
}
int main() {
Ebraam();
int t = 1;
// cin >> t;
while (t--) {
solve();
if (t)cout << endl;
}
return 0;
}
Submission Info
| Submission Time |
|
| Task |
A - π |
| User |
Ebraam_Yousef |
| Language |
C++23 (GCC 15.2.0) |
| Score |
100 |
| Code Size |
1089 Byte |
| Status |
AC |
| Exec Time |
2 ms |
| Memory |
3856 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
100 / 100 |
| Status |
|
|
| 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 |
3708 KiB |
| 00_sample_01.txt |
AC |
2 ms |
3684 KiB |
| 00_sample_02.txt |
AC |
1 ms |
3788 KiB |
| 01_random_00.txt |
AC |
1 ms |
3800 KiB |
| 01_random_01.txt |
AC |
1 ms |
3652 KiB |
| 01_random_02.txt |
AC |
1 ms |
3656 KiB |
| 01_random_03.txt |
AC |
1 ms |
3720 KiB |
| 01_random_04.txt |
AC |
1 ms |
3668 KiB |
| 01_random_05.txt |
AC |
1 ms |
3856 KiB |
| 01_random_06.txt |
AC |
1 ms |
3856 KiB |