From 95422138588572e08a1ee78e654741874f11cfa0 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 10 Nov 2022 16:05:26 +0200 Subject: Added some new problems --- UVA/Introduction/RelationalOperators/main.cpp | 28 +++++++++++++++++++++++++++ UVA/Introduction/TheSnail/main.cpp | 23 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 UVA/Introduction/RelationalOperators/main.cpp create mode 100644 UVA/Introduction/TheSnail/main.cpp (limited to 'UVA/Introduction') 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 + +using namespace std; + +typedef long long ll; +typedef pair ii; +typedef vector vii; +typedef vector 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 + +using namespace std; + +typedef long long ll; +typedef pair ii; +typedef vector vii; +typedef vector 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 - + + + + } +} -- cgit v1.2.3