結果

問題 No.138 化石のバージョン
ユーザー swdamdrswdamdr
提出日時 2017-01-25 14:10:54
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 835 bytes
コンパイル時間 6,311 ms
コンパイル使用メモリ 99,424 KB
実行使用メモリ 15,748 KB
最終ジャッジ日時 2023-08-24 22:10:08
合計ジャッジ時間 6,016 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
15,692 KB
testcase_01 AC 58 ms
15,628 KB
testcase_02 AC 58 ms
15,664 KB
testcase_03 AC 58 ms
15,628 KB
testcase_04 AC 58 ms
15,580 KB
testcase_05 AC 58 ms
15,704 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 57 ms
15,696 KB
testcase_17 AC 57 ms
15,748 KB
testcase_18 AC 57 ms
15,748 KB
testcase_19 AC 57 ms
15,716 KB
testcase_20 AC 58 ms
15,620 KB
testcase_21 AC 57 ms
15,748 KB
testcase_22 AC 57 ms
15,700 KB
testcase_23 AC 56 ms
15,632 KB
testcase_24 AC 58 ms
15,556 KB
testcase_25 AC 58 ms
15,580 KB
testcase_26 WA -
testcase_27 AC 59 ms
15,680 KB
testcase_28 AC 57 ms
15,612 KB
testcase_29 AC 58 ms
15,716 KB
testcase_30 AC 58 ms
15,660 KB
testcase_31 AC 57 ms
15,716 KB
testcase_32 AC 59 ms
15,616 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        int[] ver = Console.ReadLine().Split('.').Select(a => int.Parse(a)).ToArray();
        int[] judge = Console.ReadLine().Split('.').Select(a => int.Parse(a)).ToArray();
        bool b = true;

        if (ver[0] < judge[0])
        {
            b = false;
        }
        else
        {
            if (ver[1] < judge[1])
            {
                b = false;
            }
            else
            {
                if (ver[2] < judge[2])
                {
                    b = false;
                }
            }
        }

        if (b == true)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}

0