結果

問題 No.2322 MMA文字列
ユーザー りすりす/TwoSquirrels
提出日時 2023-07-16 19:07:54
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 4,144 ms
コンパイル使用メモリ 251,168 KB
最終ジャッジ日時 2025-02-15 15:16:30
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using i64 = long long int;
int main() {
  string s;
  cin >> s;
  cout << (s[0] == s[1] && s[0] != s[2] ? "Yes" : "No") << "\n";
  return 0;
}
0