結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー ks2mks2m
提出日時 2022-05-20 23:43:36
言語 Java19
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 3,873 ms
コンパイル使用メモリ 82,328 KB
実行使用メモリ 57,452 KB
最終ジャッジ日時 2023-10-20 14:40:23
合計ジャッジ時間 6,705 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
57,388 KB
testcase_01 AC 112 ms
57,176 KB
testcase_02 AC 111 ms
57,252 KB
testcase_03 AC 111 ms
57,044 KB
testcase_04 AC 103 ms
53,908 KB
testcase_05 AC 114 ms
57,452 KB
testcase_06 AC 104 ms
56,228 KB
testcase_07 AC 111 ms
57,052 KB
testcase_08 AC 110 ms
57,344 KB
testcase_09 AC 120 ms
57,412 KB
testcase_10 AC 117 ms
57,152 KB
testcase_11 AC 113 ms
57,392 KB
testcase_12 AC 122 ms
55,368 KB
testcase_13 AC 123 ms
57,132 KB
testcase_14 AC 115 ms
57,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < 3; i++) {
			sb.append(sc.next());
		}
		sc.close();

		String s = sb.toString();
		if (s.equals("#.#.#.#.#") || s.equals(".#.#.#.#.")) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0