結果
問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
ユーザー |
![]() |
提出日時 | 2021-06-11 23:26:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 672 bytes |
コンパイル時間 | 1,871 ms |
コンパイル使用メモリ | 165,636 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 02:49:38 |
合計ジャッジ時間 | 2,981 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include<bits/stdc++.h>#include <math.h>#include <iostream>#include <algorithm>using namespace std;void lessthan(int a,int b){if(a < b){cout << "YES";}else cout << "NO";}void greaterthan(int a,int b){if(a > b){cout << "YES";}else cout << "NO";}void equalto(int a,int b){if(a == b){cout << "YES";}else cout << "NO";}int main(){int a,b;char s;cin >> a >> b;cin >> s;if(s == '<'){lessthan(a,b);}else if(s == '>'){greaterthan(a,b);}else {equalto(a,b);}return 0;}