結果

問題 No.908 うしたぷにきあくん文字列
ユーザー masa_ahemasa_ahe
提出日時 2020-03-13 19:34:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 2,972 ms
コンパイル使用メモリ 74,576 KB
実行使用メモリ 41,324 KB
最終ジャッジ日時 2024-05-02 04:44:13
合計ジャッジ時間 6,247 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
41,312 KB
testcase_01 AC 142 ms
40,996 KB
testcase_02 AC 141 ms
41,316 KB
testcase_03 AC 134 ms
41,164 KB
testcase_04 AC 138 ms
41,316 KB
testcase_05 AC 139 ms
41,296 KB
testcase_06 WA -
testcase_07 AC 126 ms
39,928 KB
testcase_08 AC 130 ms
41,136 KB
testcase_09 WA -
testcase_10 AC 137 ms
41,188 KB
testcase_11 AC 140 ms
41,320 KB
testcase_12 AC 131 ms
41,136 KB
testcase_13 AC 130 ms
40,928 KB
testcase_14 WA -
testcase_15 AC 129 ms
40,940 KB
testcase_16 AC 127 ms
41,200 KB
testcase_17 AC 131 ms
40,912 KB
testcase_18 AC 139 ms
41,324 KB
testcase_19 AC 136 ms
40,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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