結果

問題 No.908 うしたぷにきあくん文字列
ユーザー curryudon08curryudon08
提出日時 2020-06-10 22:36:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 662 bytes
コンパイル時間 2,033 ms
コンパイル使用メモリ 102,040 KB
実行使用メモリ 22,632 KB
最終ジャッジ日時 2023-09-05 23:14:25
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
22,580 KB
testcase_01 AC 50 ms
22,516 KB
testcase_02 AC 48 ms
20,600 KB
testcase_03 AC 50 ms
18,484 KB
testcase_04 AC 50 ms
20,608 KB
testcase_05 AC 49 ms
22,592 KB
testcase_06 AC 49 ms
22,632 KB
testcase_07 AC 49 ms
20,536 KB
testcase_08 AC 49 ms
20,476 KB
testcase_09 AC 50 ms
20,632 KB
testcase_10 AC 49 ms
20,572 KB
testcase_11 AC 49 ms
22,512 KB
testcase_12 AC 50 ms
20,500 KB
testcase_13 AC 49 ms
18,548 KB
testcase_14 AC 49 ms
20,588 KB
testcase_15 AC 49 ms
22,552 KB
testcase_16 AC 50 ms
20,688 KB
testcase_17 AC 50 ms
22,576 KB
testcase_18 AC 50 ms
20,632 KB
testcase_19 AC 49 ms
20,480 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(!(s[i-1] != ' '  && char.IsLower(s[i-1]))){
                        f = false;
                        break;
                    }
                }
            }

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