結果

問題 No.908 うしたぷにきあくん文字列
ユーザー AtriaAtria
提出日時 2019-11-10 13:50:06
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 656 bytes
コンパイル時間 968 ms
コンパイル使用メモリ 65,336 KB
実行使用メモリ 22,652 KB
最終ジャッジ日時 2023-10-13 07:44:38
合計ジャッジ時間 3,005 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,616 KB
testcase_01 AC 49 ms
22,620 KB
testcase_02 AC 48 ms
20,508 KB
testcase_03 AC 49 ms
22,460 KB
testcase_04 AC 49 ms
20,608 KB
testcase_05 AC 50 ms
22,604 KB
testcase_06 WA -
testcase_07 AC 49 ms
20,676 KB
testcase_08 AC 49 ms
20,428 KB
testcase_09 WA -
testcase_10 AC 50 ms
22,548 KB
testcase_11 AC 50 ms
18,516 KB
testcase_12 AC 50 ms
20,540 KB
testcase_13 AC 50 ms
22,588 KB
testcase_14 WA -
testcase_15 AC 49 ms
22,652 KB
testcase_16 AC 49 ms
22,500 KB
testcase_17 AC 49 ms
20,532 KB
testcase_18 AC 49 ms
20,520 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] != ' ' || char.IsUpper(s[i]))
                    {
                        WriteLine("No");
                        return;
                    }
                }
            }
            WriteLine("Yes");
        }
       
    }
}
0