結果
問題 |
No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
|
ユーザー |
![]() |
提出日時 | 2022-10-28 17:19:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 1,026 ms |
コンパイル使用メモリ | 158,216 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 20:48:32 |
合計ジャッジ時間 | 1,869 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <ios> #include <iomanip> int main() { int a,b; char c; cin>>a>>b>>c; if(a==b){ if(c=='='){ cout << "YES"; } else{ cout <<"NO"; } } else if(a<=b){ if(c=='<'){ cout<< "YES"; } else{ cout <<"NO"; } } else if(a>=b){ if(c=='>'){ cout << "YES"; } else{ cout <<"NO"; } } }