結果
| 問題 |
No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
|
| コンテスト | |
| ユーザー |
sorag
|
| 提出日時 | 2022-07-31 10:19:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 371 bytes |
| コンパイル時間 | 557 ms |
| コンパイル使用メモリ | 67,664 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 22:37:32 |
| 合計ジャッジ時間 | 1,874 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
int s,t;
char c;
bool f = 0;
cin >> s>>t>>c;
if (c == '<') {
if (s < t) f = 1;
}
else if (c == '>') {
if (s > t) f = 1;
}
else if (c == '=') {
if (s == t) f = 1;
}
if(f==1) cout << "YES" << endl;
if (f == 0) cout << "NO" << endl;
return 0;
}
sorag