結果

問題 No.2322 MMA文字列
ユーザー AckvyAckvy
提出日時 2023-05-28 13:32:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 3,117 ms
コンパイル使用メモリ 71,852 KB
実行使用メモリ 56,204 KB
最終ジャッジ日時 2023-08-27 07:58:57
合計ジャッジ時間 5,524 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,840 KB
testcase_01 AC 114 ms
56,028 KB
testcase_02 AC 112 ms
55,752 KB
testcase_03 AC 111 ms
55,900 KB
testcase_04 AC 113 ms
56,204 KB
testcase_05 AC 114 ms
55,548 KB
testcase_06 AC 114 ms
55,812 KB
testcase_07 AC 115 ms
55,756 KB
testcase_08 AC 113 ms
55,776 KB
testcase_09 AC 112 ms
55,620 KB
testcase_10 AC 112 ms
55,728 KB
testcase_11 AC 114 ms
55,652 KB
testcase_12 AC 115 ms
56,132 KB
testcase_13 AC 113 ms
55,632 KB
testcase_14 AC 115 ms
55,960 KB
testcase_15 AC 119 ms
55,808 KB
testcase_16 AC 116 ms
55,748 KB
testcase_17 AC 117 ms
55,620 KB
testcase_18 AC 115 ms
55,600 KB
testcase_19 AC 113 ms
55,480 KB
testcase_20 AC 124 ms
55,352 KB
testcase_21 AC 114 ms
55,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = sc.next().toCharArray();
		if(S[0] == S[1] && S[1] != S[2]){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}
0