結果

問題 No.2322 MMA文字列
ユーザー CuriousFairy315CuriousFairy315
提出日時 2023-05-28 13:33:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 431 bytes
コンパイル時間 2,114 ms
コンパイル使用メモリ 72,080 KB
実行使用メモリ 56,052 KB
最終ジャッジ日時 2023-08-27 07:59:14
合計ジャッジ時間 6,029 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,668 KB
testcase_01 AC 120 ms
55,448 KB
testcase_02 AC 122 ms
55,476 KB
testcase_03 AC 120 ms
56,052 KB
testcase_04 AC 118 ms
55,632 KB
testcase_05 AC 119 ms
55,676 KB
testcase_06 AC 120 ms
55,668 KB
testcase_07 AC 122 ms
55,480 KB
testcase_08 AC 120 ms
55,700 KB
testcase_09 AC 117 ms
55,484 KB
testcase_10 AC 120 ms
55,696 KB
testcase_11 AC 123 ms
55,652 KB
testcase_12 AC 121 ms
55,448 KB
testcase_13 AC 118 ms
55,644 KB
testcase_14 AC 119 ms
55,776 KB
testcase_15 AC 117 ms
55,644 KB
testcase_16 AC 117 ms
55,340 KB
testcase_17 AC 122 ms
55,552 KB
testcase_18 AC 120 ms
55,448 KB
testcase_19 AC 118 ms
55,804 KB
testcase_20 AC 119 ms
55,680 KB
testcase_21 AC 117 ms
55,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


import static java.lang.System.err;

public class Main {
	public static void main(String[] args) {
		java.io.PrintWriter out = new java.io.PrintWriter(System.out);
		new Main(out);
		out.flush();
		err.flush();
	}

	public Main(java.io.PrintWriter out) {
		try (java.util.Scanner sc = new java.util.Scanner(System.in)) {
			char[] S = sc.next().toCharArray();
			out.println(S[0] == S[1] && S[1] != S[2] ? "Yes" : "No");
		}
	}
}
0