結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2021-10-31 18:01:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 10 ms / 2,000 ms |
コード長 | 574 bytes |
コンパイル時間 | 5,597 ms |
コンパイル使用メモリ | 413,684 KB |
最終ジャッジ日時 | 2025-01-25 10:00:53 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> #include <boost/multiprecision/cpp_int.hpp> using namespace std; using namespace atcoder; using namespace boost::multiprecision; void YN(bool P) { if (P) { cout << "YES" << endl; } else { cout << "NO" << endl; } } void solve() { int S, T; char c; cin >> S >> T >> c; if (c == '<') { YN(S < T); } else if (c == '>') { YN(S > T); } else { YN(S == T); } } int main() { ios::sync_with_stdio(false); cin.tie(0); solve(); return 0; }