結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
|
提出日時 | 2021-06-11 21:22:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 1,415 bytes |
コンパイル時間 | 7,211 ms |
コンパイル使用メモリ | 195,148 KB |
最終ジャッジ日時 | 2025-01-22 05:25:10 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long int; using iPair = pair<int,int>; using lPair = pair<ll, ll>; using ivector = vector<int>; using lvector = vector<ll>; using istack = stack<int>; using iqueue = queue<int>; using ivv = vector<vector<int>>; using lvv = vector<vector<ll>>; const int INF = 0x3f3f3f3f; const ll LINF = 0x3f3f3f3f3f3f3f3f; vector<iPair> dir = {{1,0}, {-1,0}, {0,1}, {0,-1}}; #define dump(x) cout << #x << " = " << (x) << endl #define ALL(x) begin(x),end(x) #define rep(i,s,e) for(ll i=(s), i_stop=(e); i<i_stop; ++i) #define repRev(i,s,e) for(ll i=(e)-1, i_stop=(s); i>=i_stop; --i) #define range(i,s,n) for(ll i=(s), i_stop=(s)+(n); i<i_stop; ++i) #define rangeRev(i,s,n) for(ll i=(s), i_stop=(s)-(n); i>i_stop; --i) #define foreach(x,container) for(auto &&x:container) template<typename T> bool chmax(T& a, const T b) {if(a<b) {a=b;return true;} return false;} template<typename T> bool chmin(T& a, const T b) {if(a>b) {a=b;return true;} return false;} template<typename T> void printArr(vector<T> &arr){ for(auto &x:arr) {cout << x << " ";} cout << endl; } /* */ void solve() { int s,t; string c; cin>>s>>t>>c; bool flag; if(c[0]=='=') flag = s==t; else if(c[0] == '>') flag = s>t; else flag = s<t; cout << (flag?"YES":"NO") << endl; } int main(){ ios::sync_with_stdio(false); cin.tie(0); solve(); return 0; }