結果

問題 No.2322 MMA文字列
ユーザー みどみど
提出日時 2023-05-28 13:34:29
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 2,558 ms
コンパイル使用メモリ 199,660 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-26 20:57:45
合計ジャッジ時間 3,985 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define mrep(i, s, n) for (int i = (s); i < (int)(n); i++)
#define rep(i, n) mrep(i, 0, n)
using namespace std;
using ll = long long;
const int INF = int(1e+9)+1;
const ll INFL = ll(1e+18)+1;

int main() {
    string s;
    cin >> s;

    string ans = "No";
    if (s[0] == s[1] && s[1] != s[2]) {ans = "Yes";} 

    cout << ans << endl;
}
0