結果

問題 No.2322 MMA文字列
ユーザー yorry2101
提出日時 2023-05-29 22:14:04
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 66,660 KB
最終ジャッジ日時 2025-02-13 16:09:53
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl

int main(void){
    string s;
    cin >> s;
    (s[0] == s[1] && s[0] != s[2]) ? YES : NO;
}
0