結果

問題 No.138 化石のバージョン
ユーザー Michae'Gon
提出日時 2015-04-18 04:44:34
言語 Haskell
(9.10.1)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 1,502 ms
コンパイル使用メモリ 173,440 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 16:12:15
合計ジャッジ時間 2,760 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )

Main.hs:5:1: warning: [GHC-94817] [-Wtabs]
    Tab character found here, and in one further location.
    Suggested fix: Please use spaces instead.
  |
5 |         | x >= y = "YES"
  | ^^^^^^^^
[2 of 2] Linking a.out

ソースコード

diff #

main = getContents >>= putStrLn . solve . map read . lines . filter (/='.')

solve :: [Integer] -> String
solve [x, y]
	| x >= y = "YES"
	| otherwise = "NO"
0