diff options
Diffstat (limited to 'UVA/PIDigits')
| -rwxr-xr-x | UVA/PIDigits/main | bin | 0 -> 22696 bytes | |||
| -rw-r--r-- | UVA/PIDigits/main.cpp | 20 | ||||
| -rw-r--r-- | UVA/PIDigits/main_input0.txt | 1 | ||||
| -rw-r--r-- | UVA/PIDigits/main_input1.txt | 1 | ||||
| -rw-r--r-- | UVA/PIDigits/main_output0.txt | 1 | ||||
| -rw-r--r-- | UVA/PIDigits/main_output1.txt | 1 |
6 files changed, 24 insertions, 0 deletions
diff --git a/UVA/PIDigits/main b/UVA/PIDigits/main Binary files differnew file mode 100755 index 0000000..f8a3206 --- /dev/null +++ b/UVA/PIDigits/main diff --git a/UVA/PIDigits/main.cpp b/UVA/PIDigits/main.cpp new file mode 100644 index 0000000..511c72a --- /dev/null +++ b/UVA/PIDigits/main.cpp @@ -0,0 +1,20 @@ +#include<bits/stdc++.h> +#include <iomanip> + +using namespace std; + +typedef long long ll; +typedef pair<int, int> ii; +typedef vector<ii> vii; +typedef vector<int> vi; + +#define INF 1000000000 + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int n; + cin >> n; + double PI = acos(-1); + cout << setprecision(n + 1) << PI << '\n'; +} diff --git a/UVA/PIDigits/main_input0.txt b/UVA/PIDigits/main_input0.txt new file mode 100644 index 0000000..7813681 --- /dev/null +++ b/UVA/PIDigits/main_input0.txt @@ -0,0 +1 @@ +5
\ No newline at end of file diff --git a/UVA/PIDigits/main_input1.txt b/UVA/PIDigits/main_input1.txt new file mode 100644 index 0000000..3f10ffe --- /dev/null +++ b/UVA/PIDigits/main_input1.txt @@ -0,0 +1 @@ +15
\ No newline at end of file diff --git a/UVA/PIDigits/main_output0.txt b/UVA/PIDigits/main_output0.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/UVA/PIDigits/main_output0.txt @@ -0,0 +1 @@ +1
\ No newline at end of file diff --git a/UVA/PIDigits/main_output1.txt b/UVA/PIDigits/main_output1.txt new file mode 100644 index 0000000..9bd2462 --- /dev/null +++ b/UVA/PIDigits/main_output1.txt @@ -0,0 +1 @@ +3.1415923452129312
\ No newline at end of file |
