結果
| 問題 |
No.375 立方体のN等分 (1)
|
| コンテスト | |
| ユーザー |
aimy
|
| 提出日時 | 2017-05-06 20:43:49 |
| 言語 | Haskell (9.10.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 7,986 ms |
| コンパイル使用メモリ | 174,336 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 14:03:38 |
| 合計ジャッジ時間 | 7,757 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 WA * 28 |
コンパイルメッセージ
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 = readLn >>= putStrLn . unwords . map show . sequence [fact2, pred] fact2 x = length fs2 + (fo - 1) where (fs2,[fo]) = span (==2) (fact2' x) fact2' x | odd x = [x] | otherwise = 2 : fact2' (div x 2)
aimy