結果

問題 No.138 化石のバージョン
ユーザー curryudon08curryudon08
提出日時 2020-06-20 21:52:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 774 bytes
コンパイル時間 2,519 ms
コンパイル使用メモリ 106,400 KB
実行使用メモリ 26,196 KB
最終ジャッジ日時 2023-09-16 17:48:35
合計ジャッジ時間 6,632 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
22,216 KB
testcase_01 AC 66 ms
22,160 KB
testcase_02 AC 65 ms
24,204 KB
testcase_03 AC 63 ms
22,232 KB
testcase_04 AC 65 ms
22,320 KB
testcase_05 AC 65 ms
24,236 KB
testcase_06 AC 65 ms
24,300 KB
testcase_07 AC 65 ms
26,196 KB
testcase_08 AC 66 ms
22,236 KB
testcase_09 AC 63 ms
22,396 KB
testcase_10 AC 65 ms
22,208 KB
testcase_11 AC 64 ms
22,392 KB
testcase_12 AC 65 ms
22,124 KB
testcase_13 AC 66 ms
24,124 KB
testcase_14 AC 65 ms
24,244 KB
testcase_15 AC 64 ms
22,340 KB
testcase_16 AC 66 ms
24,356 KB
testcase_17 AC 65 ms
24,180 KB
testcase_18 AC 63 ms
24,248 KB
testcase_19 AC 66 ms
22,244 KB
testcase_20 AC 67 ms
24,252 KB
testcase_21 AC 66 ms
22,196 KB
testcase_22 AC 65 ms
22,212 KB
testcase_23 AC 65 ms
22,212 KB
testcase_24 AC 64 ms
24,252 KB
testcase_25 AC 65 ms
22,164 KB
testcase_26 AC 65 ms
24,180 KB
testcase_27 AC 65 ms
22,212 KB
testcase_28 AC 65 ms
22,052 KB
testcase_29 AC 65 ms
22,276 KB
testcase_30 AC 65 ms
22,272 KB
testcase_31 AC 66 ms
22,244 KB
testcase_32 AC 65 ms
20,204 KB
testcase_33 AC 64 ms
22,076 KB
testcase_34 AC 65 ms
22,100 KB
testcase_35 AC 64 ms
22,120 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;

namespace _0138
{
    class Program
    {
        static void Main(string[] args)
        {
            var s1 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();
            var t1 = string.Format("{0:000}",s1[0]) + string.Format("{0:000}",s1[1]) + string.Format("{0:000}",s1[2]);
            var n1 = int.Parse(t1);

            var s2 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();
            var t2 = string.Format("{0:000}",s2[0]) + string.Format("{0:000}",s2[1]) + string.Format("{0:000}",s2[2]);
            var n2 = int.Parse(t2);

            if(n2 <= n1){
                Console.WriteLine("YES");
            }else{
                Console.WriteLine("NO");
            }
        }
    }
}
0