結果

問題 No.908 うしたぷにきあくん文字列
ユーザー AtriaAtria
提出日時 2019-11-10 13:55:40
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 788 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 65,424 KB
実行使用メモリ 24,572 KB
最終ジャッジ日時 2023-10-13 07:44:59
合計ジャッジ時間 2,823 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 49 ms
22,560 KB
testcase_02 AC 50 ms
20,424 KB
testcase_03 WA -
testcase_04 AC 49 ms
20,424 KB
testcase_05 AC 49 ms
22,632 KB
testcase_06 AC 50 ms
22,688 KB
testcase_07 AC 49 ms
20,564 KB
testcase_08 AC 48 ms
20,404 KB
testcase_09 AC 49 ms
22,500 KB
testcase_10 AC 49 ms
20,592 KB
testcase_11 WA -
testcase_12 AC 48 ms
20,568 KB
testcase_13 WA -
testcase_14 AC 49 ms
20,552 KB
testcase_15 WA -
testcase_16 AC 49 ms
20,456 KB
testcase_17 WA -
testcase_18 AC 49 ms
20,416 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;

namespace CP
{
    class Atria
    {
        static void Main(string[] args)
        {
            string s = ReadLine();
            for (int i = 0; i < s.Length; i++)
            {
                if (i % 2 == 1)
                {
                    if (s[i] != ' ')
                    {
                        WriteLine("No");
                        return;
                    }
                }
                else if (char.IsUpper(s[i]) || s[i] != ' ')
                {
                    WriteLine("No");
                    return;
                }
            }
            WriteLine("Yes");
        }

    }
}
0