aboutsummaryrefslogtreecommitdiff
path: root/UVA
diff options
context:
space:
mode:
Diffstat (limited to 'UVA')
-rw-r--r--UVA/Introduction/RelationalOperators/main.cpp28
-rw-r--r--UVA/Introduction/TheSnail/main.cpp23
-rwxr-xr-xUVA/PIDigits/mainbin0 -> 22696 bytes
-rw-r--r--UVA/PIDigits/main.cpp20
-rw-r--r--UVA/PIDigits/main_input0.txt1
-rw-r--r--UVA/PIDigits/main_input1.txt1
-rw-r--r--UVA/PIDigits/main_output0.txt1
-rw-r--r--UVA/PIDigits/main_output1.txt1
8 files changed, 75 insertions, 0 deletions
diff --git a/UVA/Introduction/RelationalOperators/main.cpp b/UVA/Introduction/RelationalOperators/main.cpp
new file mode 100644
index 0000000..6f03abd
--- /dev/null
+++ b/UVA/Introduction/RelationalOperators/main.cpp
@@ -0,0 +1,28 @@
+#include<bits/stdc++.h>
+
+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 tt;
+ cin >> tt;
+ while(tt--) {
+ int n, m;
+ cin >> n >> m;
+ if (n < m) {
+ cout << "<" << '\n';
+ } else if (n > m) {
+ cout << ">" << '\n';
+ } else {
+ cout << "=" << '\n';
+ }
+ }
+}
diff --git a/UVA/Introduction/TheSnail/main.cpp b/UVA/Introduction/TheSnail/main.cpp
new file mode 100644
index 0000000..bdc2bf0
--- /dev/null
+++ b/UVA/Introduction/TheSnail/main.cpp
@@ -0,0 +1,23 @@
+#include<bits/stdc++.h>
+
+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 h, u, d, f, i = 1;
+ while(cin >> h >> u >> d >> f) {
+ vi v(100);
+ v[i] = h -
+
+
+
+ }
+}
diff --git a/UVA/PIDigits/main b/UVA/PIDigits/main
new file mode 100755
index 0000000..f8a3206
--- /dev/null
+++ b/UVA/PIDigits/main
Binary files differ
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