結果

問題 No.138 化石のバージョン
ユーザー CroweaCrowea
提出日時 2019-01-29 19:00:15
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 489 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 113,660 KB
実行使用メモリ 27,504 KB
最終ジャッジ日時 2024-04-19 08:18:47
合計ジャッジ時間 2,861 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
27,136 KB
testcase_01 AC 27 ms
25,088 KB
testcase_02 AC 27 ms
25,076 KB
testcase_03 WA -
testcase_04 AC 28 ms
27,120 KB
testcase_05 AC 28 ms
25,364 KB
testcase_06 AC 28 ms
27,148 KB
testcase_07 AC 27 ms
25,132 KB
testcase_08 AC 28 ms
27,024 KB
testcase_09 AC 26 ms
23,224 KB
testcase_10 AC 27 ms
27,260 KB
testcase_11 AC 27 ms
24,952 KB
testcase_12 AC 27 ms
25,136 KB
testcase_13 AC 28 ms
25,368 KB
testcase_14 AC 27 ms
25,008 KB
testcase_15 AC 27 ms
25,108 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 28 ms
25,112 KB
testcase_20 AC 28 ms
25,108 KB
testcase_21 WA -
testcase_22 AC 28 ms
25,108 KB
testcase_23 AC 27 ms
22,964 KB
testcase_24 AC 27 ms
25,472 KB
testcase_25 AC 27 ms
25,008 KB
testcase_26 AC 27 ms
24,980 KB
testcase_27 AC 28 ms
27,128 KB
testcase_28 AC 28 ms
25,212 KB
testcase_29 AC 28 ms
27,256 KB
testcase_30 AC 27 ms
25,212 KB
testcase_31 AC 27 ms
25,108 KB
testcase_32 AC 27 ms
25,212 KB
testcase_33 AC 28 ms
25,136 KB
testcase_34 AC 28 ms
27,004 KB
testcase_35 AC 27 ms
27,128 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 System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var a1 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();
        var a2 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();

        Console.WriteLine((a2[0] < a1[0] ||
                            a2[0] == a1[0] && a2[1] < a1[1] ||
                            a2[0] < a1[0] && a2[0] == a1[0] && a2[1] < a1[1] && a2[2] <= a1[2]) ? "YES" : "NO");
    }
}
0