diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-11-10 16:05:26 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-11-10 16:05:26 +0200 |
| commit | 95422138588572e08a1ee78e654741874f11cfa0 (patch) | |
| tree | 1a03ad9c57788546e804724ed4507f46c385263d /UVA | |
| parent | 42e25addbbce62e8bb43ab587b21c5bccb495bfb (diff) | |
| download | competitive-programming-95422138588572e08a1ee78e654741874f11cfa0.tar.xz competitive-programming-95422138588572e08a1ee78e654741874f11cfa0.zip | |
Added some new problems
Diffstat (limited to 'UVA')
| -rw-r--r-- | UVA/Introduction/RelationalOperators/main.cpp | 28 | ||||
| -rw-r--r-- | UVA/Introduction/TheSnail/main.cpp | 23 | ||||
| -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 |
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 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 |
