結果

問題 No.908 うしたぷにきあくん文字列
ユーザー curryudon08curryudon08
提出日時 2020-06-10 22:34:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 638 bytes
コンパイル時間 4,149 ms
コンパイル使用メモリ 103,684 KB
実行使用メモリ 22,504 KB
最終ジャッジ日時 2023-09-05 23:13:26
合計ジャッジ時間 5,034 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
22,396 KB
testcase_01 AC 46 ms
20,460 KB
testcase_02 AC 45 ms
20,388 KB
testcase_03 AC 45 ms
20,436 KB
testcase_04 AC 45 ms
22,404 KB
testcase_05 AC 47 ms
20,452 KB
testcase_06 WA -
testcase_07 AC 47 ms
20,376 KB
testcase_08 AC 45 ms
22,420 KB
testcase_09 WA -
testcase_10 AC 44 ms
20,464 KB
testcase_11 AC 45 ms
22,396 KB
testcase_12 AC 45 ms
22,504 KB
testcase_13 AC 44 ms
20,364 KB
testcase_14 WA -
testcase_15 AC 45 ms
20,516 KB
testcase_16 AC 45 ms
20,388 KB
testcase_17 AC 46 ms
20,472 KB
testcase_18 AC 44 ms
20,388 KB
testcase_19 AC 46 ms
18,396 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _0908
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine();

            var f = true;
            for(var i = 1; i <= s.Length; i++){
                if(i % 2 == 0){
                    if(s[i-1] != ' '){
                        f = false;
                        break;
                    }
                }else{
                    if(char.IsUpper(s[i-1])){
                        f = false;
                        break;
                    }
                }
            }

            Console.WriteLine(f ? "Yes" : "No");
        }
    }
}
0