結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
| コンテスト | |
| ユーザー |
ゆにぽけ
|
| 提出日時 | 2024-02-23 07:10:00 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 812 bytes |
| 記録 | |
| コンパイル時間 | 894 ms |
| コンパイル使用メモリ | 145,564 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-03 19:19:30 |
| 合計ジャッジ時間 | 2,364 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
ゆにぽけ