結果

問題 No.671 1000000007
コンテスト
ユーザー SamuSoft
提出日時 2018-04-17 05:15:58
言語 Haskell
(9.14.1)
コンパイル:
ghc -rtsopts -with-rtsopts=-K1G -o a.out -O2 _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 227 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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

ソースコード

diff #
raw source code

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
0