結果

問題 No.908 うしたぷにきあくん文字列
ユーザー curryudon08
提出日時 2020-06-10 22:34:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 638 bytes
コンパイル時間 2,389 ms
コンパイル使用メモリ 103,680 KB
実行使用メモリ 27,444 KB
最終ジャッジ日時 2024-06-23 18:32:30
合計ジャッジ時間 3,376 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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