結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2024-02-23 07:10:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 812 bytes |
コンパイル時間 | 1,226 ms |
コンパイル使用メモリ | 122,024 KB |
最終ジャッジ日時 | 2025-02-19 19:07:10 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <array> #include <iterator> #include <string> #include <cctype> #include <cstring> #include <cstdlib> #include <cassert> #include <cmath> #include <ctime> #include <iomanip> #include <numeric> #include <stack> #include <queue> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <bitset> #include <random> #include <utility> #include <functional> using namespace std; void Main() { int S,T; char c; cin >> S >> T >> c; if(c == '<') { cout << (S < T ? "YES\n":"NO\n"); } else if(c == '=') { cout << (S == T ? "YES\n":"NO\n"); } else { cout << (S > T ? "YES\n":"NO\n"); } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int tt = 1; /* cin >> tt; */ while(tt--) Main(); }