結果

問題 No.138 化石のバージョン
ユーザー Crowea
提出日時 2019-01-29 19:00:15
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 489 bytes
コンパイル時間 1,059 ms
コンパイル使用メモリ 105,856 KB
実行使用メモリ 19,200 KB
最終ジャッジ日時 2024-10-11 00:55:05
合計ジャッジ時間 3,056 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 29 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
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