結果
| 問題 | No.671 1000000007 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-17 05:15:58 |
| 言語 | Haskell (9.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 4,900 ms |
| コンパイル使用メモリ | 192,896 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-14 09:43:05 |
| 合計ジャッジ時間 | 5,453 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 9 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main :: IO() main = getContents >>= print . checker 0 readInt :: [Char] -> Int readInt = read checker :: Int -> [Char] -> Int checker i (x:lx) | x == '1' = checker 0 lx | x == '0' = checker (i+1) lx | otherwise = i - 7