結果

問題 No.138 化石のバージョン
ユーザー trineutron
提出日時 2019-07-21 14:57:46
言語 Haskell
(9.10.1)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 5,656 ms
コンパイル使用メモリ 175,616 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-13 00:36:10
合計ジャッジ時間 6,934 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

tr '.' = ' '
tr c = c

version = sum . zipWith (*) [1000000, 1000, 1] . map read . words . map tr

main = do
    a <- getLine
    b <- getLine
    print $ version a
    print $ version b
    putStrLn $ if version a < version b then "NO" else "YES"
0