結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー ishan bhutaniishan bhutani
提出日時 2021-06-11 22:17:23
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 2,214 bytes
コンパイル時間 1,883 ms
コンパイル使用メモリ 197,848 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-21 12:51:19
合計ジャッジ時間 3,055 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,384 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 1 ms
4,376 KB
testcase_19 AC 1 ms
4,376 KB
testcase_20 AC 1 ms
4,380 KB
testcase_21 AC 1 ms
4,376 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 1 ms
4,376 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 2 ms
4,376 KB
testcase_27 AC 2 ms
4,376 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 1 ms
4,376 KB
testcase_31 AC 1 ms
4,380 KB
testcase_32 AC 2 ms
4,376 KB
testcase_33 AC 2 ms
4,376 KB
testcase_34 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ull unsigned long long int
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ld        long double
#define vi        vector<ll>
#define pi        pair<ll,ll>
#define all(x)    x.begin(), x.end()
#define allr(x)   x.rbegin(), x.rend()
#define sz(x)     ((int)x.size())
#define ln(x)     ((int)x.length())
#define mp        make_pair
#define pb        push_back
#define ff        first
#define ss        second
#define dbg(x)    cout << #x << ": " << x
#define clr(x,v)  memset(x, v, sizeof(x))
#define fix(x)    cout << setprecision(x) << fixed;
#define fo(i,a,b) for(int i=(a);i<=(b);i++)

template<typename T1, typename T2>istream& operator>>(istream& in, pair<T1, T2> &a) {in >> a.fr >> a.sc; return in;}
template<typename T1, typename T2>ostream& operator<<(ostream& out, pair<T1, T2> a) {out << a.fr << " " << a.sc; return out;}
template<typename T, typename T1>T amax(T &a, T1 b) {if (b > a)a = b; return a;}
template<typename T, typename T1>T amin(T &a, T1 b) {if (b < a)a = b; return a;}

const double PI = acos(-1.0);
const double eps = 1e-9;
const ll mod = 1e9 + 7;
const ll inf = 1LL << 30;
const int MAXN = 1e5 + 5;
const int N = 2e5 + 5;


ll max(ll a, ll b)
{
	if (a > b) return a;
	else return b;
}

ll min(ll a, ll b)
{
	if (a < b) return a;
	else return b;
}

ll power(ll a, ll p) {
	ll res = 1;
	while (p) {
		if (p & 1) {
			res = ((res) % mod * (a) % mod) % mod;
			p--;
		}
		else {
			a = ((a % mod) * (a % mod)) % mod;
			p >>= 1;
		}

	}
	return res;

}


void solve() {
	ll a, b, i, j, x;
	char c;
	cin >> a >> b >> c;
	if ((a == b) && c == '=') {
		cout << "YES\n";
	}
	else if ((a > b) && c == '>') {
		cout << "YES\n";
	}
	else if ((a < b) && c == '<') {
		cout << "YES\n";
	}
	else {
		cout << "NO\n";
	}

}

int main() {

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
// #ifndef ONLINE_JUDGE

// 	// For getting input from input.txt file
// 	freopen("input.txt", "r", stdin);

// 	// Printing the Output to output.txt file
// 	freopen("output.txt", "w", stdout);
// #endif
	ll t = 1;
	//cin >> t;

	//ll tt = 0;
	while (t--) {
		//tt++;

		solve();
	}

	return 0;
}
0