結果

問題 No.908 うしたぷにきあくん文字列
ユーザー hayashihayashi
提出日時 2019-10-28 11:30:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 724 bytes
コンパイル時間 3,029 ms
コンパイル使用メモリ 101,312 KB
実行使用メモリ 22,672 KB
最終ジャッジ日時 2023-10-12 23:01:51
合計ジャッジ時間 4,897 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
18,524 KB
testcase_01 AC 49 ms
20,488 KB
testcase_02 AC 49 ms
22,456 KB
testcase_03 AC 49 ms
20,472 KB
testcase_04 AC 49 ms
20,412 KB
testcase_05 AC 49 ms
22,432 KB
testcase_06 AC 49 ms
20,588 KB
testcase_07 AC 48 ms
20,440 KB
testcase_08 AC 49 ms
20,380 KB
testcase_09 AC 48 ms
20,472 KB
testcase_10 AC 49 ms
22,420 KB
testcase_11 AC 50 ms
22,672 KB
testcase_12 AC 49 ms
20,452 KB
testcase_13 AC 49 ms
20,536 KB
testcase_14 AC 48 ms
20,432 KB
testcase_15 AC 48 ms
20,520 KB
testcase_16 AC 48 ms
20,408 KB
testcase_17 AC 49 ms
22,580 KB
testcase_18 AC 48 ms
20,472 KB
testcase_19 AC 48 ms
20,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using static System.Console;
namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var N = ReadLine();
            for(int i = 0; i < N.Length; i++)
            {
                if(i % 2 == 0)
                {
                    if(N[i] == ' ')
                    {
                        WriteLine("No");
                        return;
                    }
                }
                else
                {
                    if (N[i] != ' ')
                    {
                        WriteLine("No");
                        return;
                    }
                }
            }
            WriteLine("Yes");
        }
    }
}
0