結果

問題 No.138 化石のバージョン
ユーザー nak2yoshinak2yoshi
提出日時 2016-02-21 23:45:20
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 433 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 114,152 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-12 02:58:24
合計ジャッジ時間 1,766 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.algorithm;

void main()
{
    int[] A, B, C;
    foreach (line; stdin.byLineCopy.array)
    {
        auto input = line.split(".").to!(int[]);
        A ~= input[0];
        B ~= input[1];
        C ~= input[2];
    }

    (   A[0] * 10101 + B[0] * 101 + C[0]
     >= A[1] * 10101 + B[1] * 101 + C[1]
     ? "YES" : "NO").writeln;
}
0