結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,528 KB
testcase_01 AC 50 ms
20,656 KB
testcase_02 AC 49 ms
20,564 KB
testcase_03 AC 50 ms
20,540 KB
testcase_04 AC 48 ms
20,384 KB
testcase_05 AC 50 ms
20,360 KB
testcase_06 WA -
testcase_07 AC 49 ms
20,568 KB
testcase_08 AC 50 ms
20,504 KB
testcase_09 WA -
testcase_10 AC 49 ms
20,560 KB
testcase_11 AC 49 ms
20,552 KB
testcase_12 AC 50 ms
22,604 KB
testcase_13 AC 49 ms
22,500 KB
testcase_14 WA -
testcase_15 AC 50 ms
22,648 KB
testcase_16 AC 49 ms
20,520 KB
testcase_17 AC 50 ms
22,540 KB
testcase_18 AC 49 ms
22,568 KB
testcase_19 AC 50 ms
22,476 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]))
                {
                    WriteLine("No");
                    return;
                }
            }
            WriteLine("Yes");
        }

    }
}
0