結果

問題 No.2322 MMA文字列
ユーザー taku-1227
提出日時 2023-05-28 13:42:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 1,744 ms
コンパイル使用メモリ 165,784 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-26 21:33:18
合計ジャッジ時間 2,713 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	string S;
  	bool ans = false;
  	cin >> S;
  	for(int i = 0; i < 1; i++){
    if(S.at(i) == S.at(i + 1)){
    ans = true;
    }
    if(ans) cout << "Yes" << endl; else cout << "No" << endl;
    }
}
0