結果
| 問題 | No.45 回転寿司 |
| ユーザー |
3405691582
|
| 提出日時 | 2017-03-21 03:15:02 |
| 言語 | Haskell (9.10.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 7,394 ms |
| コンパイル使用メモリ | 173,696 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2024-07-05 01:06:39 |
| 合計ジャッジ時間 | 20,226 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 29 |
コンパイルメッセージ
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
ソースコード
main = do getLine vs <- map read . words <$> getLine :: IO [Int] putStrLn $ show $ maxTaste vs maxTaste :: [Int] -> Int maxTaste [] = 0 maxTaste [v] = v maxTaste (v:v':vs) = max (v + maxTaste vs) (maxTaste (v':vs))
3405691582