結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
41,148 KB
testcase_01 AC 104 ms
41,040 KB
testcase_02 AC 107 ms
41,052 KB
testcase_03 AC 109 ms
41,084 KB
testcase_04 AC 105 ms
40,792 KB
testcase_05 AC 109 ms
40,748 KB
testcase_06 WA -
testcase_07 AC 98 ms
39,692 KB
testcase_08 AC 107 ms
40,896 KB
testcase_09 WA -
testcase_10 AC 113 ms
40,924 KB
testcase_11 AC 110 ms
40,852 KB
testcase_12 AC 112 ms
41,044 KB
testcase_13 AC 112 ms
41,200 KB
testcase_14 WA -
testcase_15 AC 111 ms
41,256 KB
testcase_16 AC 113 ms
41,260 KB
testcase_17 AC 114 ms
41,436 KB
testcase_18 AC 110 ms
40,972 KB
testcase_19 AC 114 ms
41,292 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;
			}
			if(Character.isUpperCase(s.charAt(i))&&i%2==0){
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}
0