Submission #12095496


Source Code Expand

Copy
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define pi 3.141592653589793238
#define int long long
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;


signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);  
    cout.tie(0);   
#ifndef ONLINE_JUDGE
    if(fopen("INPUT.txt","r"))
    {
    freopen ("INPUT.txt" , "r" , stdin);
    freopen ("OUTPUT.txt" , "w" , stdout);
    }
#endif

// -------------------------------------Code starts here---------------------------------------------------------------------     

  int r;
  cin>>r;
  long double ans=2*pi*r;
  cout<<fixed<<setprecision(5);
  cout<<ans;  

// -------------------------------------Code ends here------------------------------------------------------------------
    clock_t clk;
  clk = clock();

    clk = clock() - clk;
  cerr << fixed << setprecision(6) << "Time: " << ((double)clk)/CLOCKS_PER_SEC << "\n";
  return 0;
}

Submission Info

Submission Time
Task A - Circle Pond
User babayaga
Language C++ (GCC 9.2.1)
Score 100
Code Size 1123 Byte
Status AC
Exec Time 4 ms
Memory 3804 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 12
Set Name Test Cases
Sample s1.txt, s2.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
01.txt AC 2 ms 3712 KB
02.txt AC 2 ms 3732 KB
03.txt AC 2 ms 3792 KB
04.txt AC 2 ms 3668 KB
05.txt AC 2 ms 3740 KB
06.txt AC 2 ms 3708 KB
07.txt AC 2 ms 3708 KB
08.txt AC 2 ms 3708 KB
09.txt AC 2 ms 3712 KB
10.txt AC 4 ms 3708 KB
s1.txt AC 2 ms 3804 KB
s2.txt AC 2 ms 3704 KB