結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-04-12 12:25:34 | 
| 言語 | Haskell  (9.10.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 668 bytes | 
| コンパイル時間 | 7,857 ms | 
| コンパイル使用メモリ | 172,032 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-18 10:18:40 | 
| 合計ジャッジ時間 | 6,376 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 18 | 
コンパイルメッセージ
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
ソースコード
choice3 :: [Int] -> [Int]
choice3 [] = []
choice3 (x:xs)
    | x `mod` 3 == 0        = x : choice3 xs
    | choice3' x == True    = x : choice3 xs
    | otherwise             = choice3 xs
    where
        choice3' :: Int -> Bool
        choice3' i =
            let 
                i_10 = floor $ (fromIntegral (i)) / 10
                i_01 = i - i_10 * 10
            in
                i_10 == 3 || i_01 == 3
intListShowRow [] = putStrLn ""
intListShowRow (x:xs) =
    do
        print x
        intListShowRow xs
main = do
    str <- getLine
    let
        w = words str
        a = read (w !! 0)
        b = read (w !! 1)
    intListShowRow $ choice3 [a..b]