結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー matcharate12matcharate12
提出日時 2022-03-13 17:47:49
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 477 bytes
コンパイル時間 1,691 ms
コンパイル使用メモリ 165,840 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-19 01:02:45
合計ジャッジ時間 2,469 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; i++)
#define srep(i,a,b) for(int i = a; i < b; i++)
#define all(A) (A).begin(),A.end()
#define MOD 1000000007
using namespace std;
using ll = long long;
using P = pair<char,int>;
using Graph = vector<vector<int>>;

int main(void){
	int s,t; cin >> s >> t;
	char c; cin >> c;
	if(c == '<') cout << (s < t ? "YES" : "NO");
	else if(c == '>') cout << (s > t ? "YES" : "NO");
	else cout << (s == t ? "YES" : "NO");
}
0