結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-06-14 15:54:29 |
| 言語 | Haskell (9.14.1) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 132 bytes |
| 記録 | |
| コンパイル時間 | 8,212 ms |
| コンパイル使用メモリ | 187,392 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 06:04:38 |
| 合計ジャッジ時間 | 9,369 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
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 = do
s <- getLine
print $ f 1 s
f i [] = i
f i (x:xs)
| x == 'L' = f (2 * i) xs
| otherwise = f (2 * i + 1) xs
trineutron