結果

問題 No.138 化石のバージョン
ユーザー RinRin
提出日時 2015-09-05 18:04:51
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 650 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 13,856 KB
最終ジャッジ日時 2023-09-26 08:50:44
合計ジャッジ時間 2,158 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,672 KB
testcase_01 AC 18 ms
11,536 KB
testcase_02 AC 18 ms
11,692 KB
testcase_03 AC 18 ms
11,576 KB
testcase_04 AC 18 ms
11,680 KB
testcase_05 AC 18 ms
11,636 KB
testcase_06 AC 18 ms
11,524 KB
testcase_07 AC 18 ms
11,676 KB
testcase_08 WA -
testcase_09 AC 18 ms
11,780 KB
testcase_10 AC 18 ms
11,764 KB
testcase_11 AC 17 ms
11,776 KB
testcase_12 AC 18 ms
11,644 KB
testcase_13 WA -
testcase_14 AC 18 ms
11,672 KB
testcase_15 WA -
testcase_16 AC 18 ms
11,592 KB
testcase_17 AC 18 ms
11,680 KB
testcase_18 AC 18 ms
11,576 KB
testcase_19 AC 18 ms
11,780 KB
testcase_20 AC 18 ms
11,608 KB
testcase_21 AC 18 ms
11,684 KB
testcase_22 AC 19 ms
11,676 KB
testcase_23 AC 18 ms
11,528 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 18 ms
11,672 KB
testcase_27 AC 18 ms
11,756 KB
testcase_28 AC 17 ms
11,588 KB
testcase_29 AC 18 ms
11,620 KB
testcase_30 AC 18 ms
11,668 KB
testcase_31 AC 18 ms
11,620 KB
testcase_32 AC 18 ms
11,852 KB
testcase_33 AC 19 ms
11,684 KB
testcase_34 AC 18 ms
11,672 KB
testcase_35 AC 18 ms
11,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(define (ver2num x)
  (let loop(
            (i 0)
            (RetVal 0)
           )
    (if (= i (length x))
        RetVal
        (if (string=? (list->string (list (list-ref x i))) ".")
            (loop (+ i 1) (* RetVal 1000))
            (loop (+ i 1) (+ (* RetVal 10) (string->number (list->string (list (list-ref x i))))))
        )
    )
  )
)

(let (
      (X (string->list (symbol->string (read))))
      (Y (string->list (symbol->string (read))))
     )
  (if (>= (ver2num X) (ver2num Y))
      (System.out.println "YES")
      (System.out.println "NO")
  )
)
0