結果

問題 No.908 うしたぷにきあくん文字列
ユーザー iwkjoseciwkjosec
提出日時 2019-10-18 21:23:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 425 bytes
コンパイル時間 697 ms
コンパイル使用メモリ 109,888 KB
実行使用メモリ 25,532 KB
最終ジャッジ日時 2024-06-25 14:46:28
合計ジャッジ時間 1,825 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using static System.Console;
using static System.Math;

class Program
{
    static void Main()
    {
        var r =ReadLine();
        var a=true;
        for (int i = 0; i < r.Length; i++)
        {
            if(i%2==1&&r[i]!=' ')a=false;
            if(i%2==0&&r[i]==' ')a=false;
        }
        WriteLine(a?"Yes":"No");
    }
}
0