結果

問題 No.908 うしたぷにきあくん文字列
ユーザー fal_rndfal_rnd
提出日時 2019-11-22 00:01:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 2,154 ms
コンパイル使用メモリ 71,440 KB
実行使用メモリ 55,808 KB
最終ジャッジ日時 2023-08-01 10:32:09
合計ジャッジ時間 6,017 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,796 KB
testcase_01 AC 119 ms
55,548 KB
testcase_02 AC 119 ms
55,548 KB
testcase_03 AC 120 ms
55,720 KB
testcase_04 AC 118 ms
55,496 KB
testcase_05 AC 119 ms
55,564 KB
testcase_06 AC 119 ms
55,808 KB
testcase_07 AC 119 ms
55,620 KB
testcase_08 AC 117 ms
55,752 KB
testcase_09 AC 119 ms
55,796 KB
testcase_10 AC 122 ms
55,396 KB
testcase_11 AC 121 ms
55,200 KB
testcase_12 AC 118 ms
55,316 KB
testcase_13 AC 120 ms
55,472 KB
testcase_14 AC 120 ms
55,112 KB
testcase_15 AC 119 ms
55,584 KB
testcase_16 AC 120 ms
55,520 KB
testcase_17 AC 120 ms
55,588 KB
testcase_18 AC 121 ms
55,640 KB
testcase_19 AC 119 ms
55,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
	public static void main(String[] $) {
		Scanner s=new Scanner(System.in);
		char[]c=s.nextLine().toCharArray();
		for(int i=0;i<c.length;++i) {
			if(i%2==1^c[i]==' ') {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}
0