結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,460 KB
testcase_01 AC 50 ms
20,604 KB
testcase_02 AC 49 ms
20,428 KB
testcase_03 AC 50 ms
22,596 KB
testcase_04 AC 51 ms
20,564 KB
testcase_05 AC 50 ms
22,576 KB
testcase_06 WA -
testcase_07 AC 48 ms
20,516 KB
testcase_08 AC 49 ms
20,412 KB
testcase_09 WA -
testcase_10 AC 49 ms
20,544 KB
testcase_11 AC 49 ms
20,492 KB
testcase_12 AC 48 ms
20,532 KB
testcase_13 AC 49 ms
20,432 KB
testcase_14 WA -
testcase_15 AC 50 ms
22,600 KB
testcase_16 AC 50 ms
22,448 KB
testcase_17 AC 49 ms
20,512 KB
testcase_18 AC 49 ms
20,576 KB
testcase_19 AC 49 ms
22,656 KB
権限があれば一括ダウンロードができます

ソースコード

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