結果

問題 No.2322 MMA文字列
ユーザー nhtloc
提出日時 2025-09-12 12:02:48
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 4,140 ms
コンパイル使用メモリ 211,096 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-09-12 12:02:54
合計ジャッジ時間 5,570 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string S;
    if (!(cin >> S)) return 0;
    cout << ((S[0] == S[1] && S[2] != S[0]) ? "Yes" : "No") << '\n';
    return 0;
}
0