Skip to content

Instantly share code, notes, and snippets.

@modos
Created July 24, 2022 14:42
Show Gist options
  • Save modos/6312df85afbebabff9bedf84d4987b0d to your computer and use it in GitHub Desktop.
Save modos/6312df85afbebabff9bedf84d4987b0d to your computer and use it in GitHub Desktop.
مساحت پیچیده
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double a;
cin >> a;
printf("%.15lf", a*a * (1 + (M_PI / 3) - sqrt(3)));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment