結果

問題 No.661 ハローキティはりんご3個分
ユーザー pekempeypekempey
提出日時 2018-03-10 13:57:57
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 2,617 ms
コンパイル使用メモリ 175,172 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-21 10:12:35
合計ジャッジ時間 2,349 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

import Control.Monad

main = getLine >> getContents >>= mapM_ (putStrLn . solve . read) .  lines

solve n
  | n `mod` 80 == 0 = "ikisugi"
  | n `mod` 8 == 0 = "iki"
  | n `mod` 10 == 0 = "sugi"
  | otherwise = show (n `div` 3)
0