結果

問題 No.2322 MMA文字列
ユーザー dm99x
提出日時 2023-07-24 22:25:50
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 18:09:22
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	char str[3];
	scanf("%s", str);
	if (str[0] == str[1] && str[0] != str[2])
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	
	return 0;
}
0