結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
|
提出日時 | 2017-05-05 22:57:35 |
言語 | Haskell (9.10.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 3,420 ms |
コンパイル使用メモリ | 177,908 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 09:00:14 |
合計ジャッジ時間 | 4,449 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 12 WA * 1 |
コンパイルメッセージ
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
ソースコード
-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = getContents >>= putStrLn . solve . words solve [a,b] = if check a && check b then "OK" else "NG" check xs@(x:_) | checkAllNum xs = let v = read xs in if x == '0' then v == 0 else v <= 12345 | otherwise = False checkAllNum [] = True checkAllNum (x:xs) | '0' <= x && x <= '9' = checkAllNum xs | otherwise = False