結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2021-06-11 22:10:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 428 bytes |
コンパイル時間 | 1,575 ms |
コンパイル使用メモリ | 192,644 KB |
最終ジャッジ日時 | 2025-01-22 05:59:57 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++)#define ALL(v) v.begin(),v.end()typedef long long ll;#include <bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);std::cin.tie(nullptr);int s,t;char c;cin>>s>>t>>c;int b=0;if(c=='<' && s<t) b=1;else if(c=='>' && s>t) b=1;else if(c=='=' && s==t) b=1;if(b) cout<<"YES"<<endl;else cout<<"NO"<<endl;return 0;}