結果

問題 No.908 うしたぷにきあくん文字列
ユーザー Osmium_1008Osmium_1008
提出日時 2019-10-18 21:42:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 483 bytes
コンパイル時間 2,677 ms
コンパイル使用メモリ 71,672 KB
実行使用メモリ 49,792 KB
最終ジャッジ日時 2023-09-07 21:44:03
合計ジャッジ時間 3,811 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,388 KB
testcase_01 AC 41 ms
49,384 KB
testcase_02 AC 41 ms
49,348 KB
testcase_03 AC 43 ms
49,544 KB
testcase_04 AC 42 ms
47,208 KB
testcase_05 AC 42 ms
49,152 KB
testcase_06 AC 42 ms
49,248 KB
testcase_07 AC 41 ms
49,248 KB
testcase_08 AC 42 ms
49,500 KB
testcase_09 AC 40 ms
49,532 KB
testcase_10 AC 42 ms
49,340 KB
testcase_11 AC 42 ms
49,240 KB
testcase_12 AC 42 ms
49,332 KB
testcase_13 AC 42 ms
49,304 KB
testcase_14 AC 41 ms
49,180 KB
testcase_15 AC 40 ms
49,252 KB
testcase_16 AC 42 ms
49,408 KB
testcase_17 AC 42 ms
49,368 KB
testcase_18 AC 42 ms
49,792 KB
testcase_19 AC 42 ms
49,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.lang.*;
import java.util.*;

class Main{
    public static void main (String[] args) throws IOException{
        String s;
        s=new BufferedReader(new InputStreamReader(System.in)).readLine();
        for(int i=0;i<s.length();i++){
            if(i%2==0&&s.charAt(i)==' '||i%2==1&&s.charAt(i)!=' '){
                System.out.println("No");
                System.exit(0);
            }
        }
                System.out.println("Yes");
    }
}
0