結果

問題 No.908 うしたぷにきあくん文字列
ユーザー マサマサ
提出日時 2022-01-11 17:10:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 478 bytes
コンパイル時間 2,356 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 54,320 KB
最終ジャッジ日時 2024-04-26 20:42:10
合計ジャッジ時間 6,006 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,148 KB
testcase_01 AC 127 ms
54,060 KB
testcase_02 WA -
testcase_03 AC 113 ms
53,072 KB
testcase_04 AC 128 ms
54,260 KB
testcase_05 WA -
testcase_06 AC 126 ms
53,892 KB
testcase_07 AC 128 ms
53,844 KB
testcase_08 AC 125 ms
54,160 KB
testcase_09 AC 127 ms
54,240 KB
testcase_10 WA -
testcase_11 AC 129 ms
53,820 KB
testcase_12 WA -
testcase_13 AC 125 ms
54,272 KB
testcase_14 AC 129 ms
54,116 KB
testcase_15 AC 121 ms
53,860 KB
testcase_16 AC 127 ms
53,796 KB
testcase_17 AC 133 ms
53,980 KB
testcase_18 WA -
testcase_19 AC 128 ms
54,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();

		int i = 0;
        for ( ; i < s.length(); i++) {
    	    String c = String.valueOf(s.charAt(i));
            if (i % 2 == 0) {
      	        if (c.equals(" ")) {
				    break;
			    }
            }
        }

		if (i == s.length()) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}
}
0