結果

問題 No.2322 MMA文字列
ユーザー forest3forest3
提出日時 2023-06-15 12:52:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 1,638 ms
コンパイル使用メモリ 166,320 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 13:32:35
合計ジャッジ時間 2,338 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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