結果

問題 No.908 うしたぷにきあくん文字列
ユーザー eSeFeSeF
提出日時 2019-10-20 16:21:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 1,852 bytes
コンパイル時間 981 ms
コンパイル使用メモリ 68,416 KB
実行使用メモリ 22,572 KB
最終ジャッジ日時 2023-09-15 14:38:36
合計ジャッジ時間 2,955 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
22,484 KB
testcase_01 AC 49 ms
20,580 KB
testcase_02 AC 48 ms
20,464 KB
testcase_03 AC 49 ms
18,596 KB
testcase_04 AC 49 ms
20,632 KB
testcase_05 AC 49 ms
20,532 KB
testcase_06 AC 48 ms
20,412 KB
testcase_07 AC 48 ms
20,512 KB
testcase_08 AC 49 ms
22,496 KB
testcase_09 AC 49 ms
20,456 KB
testcase_10 AC 49 ms
22,572 KB
testcase_11 AC 49 ms
22,552 KB
testcase_12 AC 49 ms
22,504 KB
testcase_13 AC 48 ms
20,504 KB
testcase_14 AC 49 ms
22,572 KB
testcase_15 AC 51 ms
22,564 KB
testcase_16 AC 50 ms
20,624 KB
testcase_17 AC 50 ms
20,420 KB
testcase_18 AC 49 ms
20,448 KB
testcase_19 AC 49 ms
20,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder
{
    class AC
    {
        const int MOD = 1000000007;
        const int INF = int.MaxValue / 2;
        const long SINF = long.MaxValue / 2;
        const double EPS = 1e-8;
        static readonly int[] dx = { 0, 1, 0, -1 };
        static readonly int[] dy = { 1, 0, -1, 0 };

        
        static void Main(string[] args)
        {
            //var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            //Console.SetOut(sw);
            var cin = new Scanner();

            string s = Console.ReadLine();
            bool ok = true;
            for(var i = 0; i < s.Length; i++)
            {
                if (i % 2 == 0)
                {
                    if(s[i] == ' ') { ok = false; }
                }
                else
                {
                    if (s[i] != ' ') { ok = false; }
                }
            }
            Console.WriteLine(ok ? "Yes" : "No");

            
            
            //Console.Out.Flush();
        }

        
    }

    

    

    public class Scanner
    {
        public int[] SplitRead()
        {
            int[] array = Console.ReadLine().Split().Select(int.Parse).ToArray();
            return array;
        }
        public long[] SplitReadL()
        {
            long[] array = Console.ReadLine().Split().Select(long.Parse).ToArray();
            return array;
        }
    }

    public static class Tool
    {
        static public void Initialize<T>(ref T[] array, T initialvalue)
        {
            for (var i = 0; i < array.Length; i++)
            {
                array[i] = initialvalue;
            }
        }
    }
}
0