結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー aimyaimy
提出日時 2017-04-16 09:50:51
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 3,021 ms
コンパイル使用メモリ 157,348 KB
実行使用メモリ 7,128 KB
最終ジャッジ日時 2023-09-26 08:57:30
合計ジャッジ時間 4,139 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,964 KB
testcase_01 AC 2 ms
6,980 KB
testcase_02 AC 3 ms
6,492 KB
testcase_03 AC 3 ms
6,992 KB
testcase_04 AC 3 ms
7,008 KB
testcase_05 AC 2 ms
6,820 KB
testcase_06 AC 3 ms
6,972 KB
testcase_07 WA -
testcase_08 AC 2 ms
7,008 KB
testcase_09 WA -
testcase_10 AC 3 ms
6,936 KB
testcase_11 AC 2 ms
6,516 KB
testcase_12 AC 2 ms
6,964 KB
testcase_13 AC 3 ms
7,004 KB
testcase_14 AC 2 ms
6,984 KB
testcase_15 AC 3 ms
6,976 KB
testcase_16 AC 2 ms
7,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.Char

main = getContents >>= putStrLn . show' . all ok . words
 where show' p = if p then "OK" else "NG"

ok s
 | (not.isDigit) (head s) = False 
 | otherwise = let (n,xs) = head (reads s) in 0<=n && n<=12345 && null xs
0