結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね | 
| コンテスト | |
| ユーザー |  momoyuu | 
| 提出日時 | 2024-10-06 23:12:40 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 455 bytes | 
| コンパイル時間 | 859 ms | 
| コンパイル使用メモリ | 90,836 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-06 23:12:42 | 
| 合計ジャッジ時間 | 1,900 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 35 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int s,t;
    cin>>s>>t;
    char c;
    cin>>c;
    if(c=='<'){
        if(s<t) cout<<"YES\n";
        else cout<<"NO\n";
    }else if(c=='>'){
        if(s>t) cout<<"YES\n";
        else cout<<"NO\n";
    }else{
        if(s==t) cout<<"YES\n";
        else cout<<"NO\n";
    }
}
            
            
            
        