結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー ぷら
提出日時 2021-06-11 21:20:48
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 2,372 ms
コンパイル使用メモリ 192,232 KB
最終ジャッジ日時 2025-01-22 05:21:24
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 35
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:5: warning: ‘c’ is used uninitialized [-Wuninitialized]
    8 |     if(c == '<') {
      |     ^~
main.cpp:6:10: note: ‘c’ was declared here
    6 |     char c;
      |          ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int S,T;
    char c;
    cin >> S >> T;
    if(c == '<') {
        cout << ((S < T)?"Yes":"No") << endl;
    }
    else if(c == '>') {
        cout << ((S > T)?"Yes":"No") << endl;
    }
    else {
        cout << ((S == T)?"Yes":"No") << endl;
    }
}
0