結果

問題 No.138 化石のバージョン
ユーザー mkanenobu
提出日時 2018-03-24 23:03:52
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 346 bytes
コンパイル時間 3,113 ms
コンパイル使用メモリ 66,708 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 05:33:46
合計ジャッジ時間 4,300 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils
var
    a = readLine(stdin).split('.').map(parseInt)
    b = readLine(stdin).split('.').map(parseInt)

proc main():string =
    for i in 0..2:
        if a[i] > b[i]:
            return "YES"
        elif a[i] == b[i]:
            continue
        elif a[i] < b[i]:
            return "NO"
    return "YES"

echo main()
0