結果

問題 No.2322 MMA文字列
ユーザー 2475057t2475057t
提出日時 2024-07-17 11:08:53
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-17 11:08:55
合計ジャッジ時間 1,152 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.2322 MMA文字列
#include <stdio.h>
#include <string.h>

int main(void){

    char s[4];
    scanf("%s", s);
    
    if((s[0] == s[1]) && (s[1] != s[2])){
        
        printf("Yes\n");

    }
    else{

        printf("No\n");

    }

    return 0;
}
0