結果
| 問題 | 
                            No.314 ケンケンパ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-08-30 10:22:01 | 
| 言語 | Haskell  (9.10.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 235 bytes | 
| コンパイル時間 | 6,110 ms | 
| コンパイル使用メモリ | 174,592 KB | 
| 実行使用メモリ | 224,064 KB | 
| 最終ジャッジ日時 | 2024-11-14 07:00:49 | 
| 合計ジャッジ時間 | 15,209 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 14 TLE * 3 | 
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
Main.hs:6:1: warning: [GHC-94817] [-Wtabs]
    Tab character found here, and in two further locations.
    Suggested fix: Please use spaces instead.
  |
6 |         n<-fmap read getLine::IO Int
  | ^^^^^^^^
[2 of 2] Linking a.out
            
            ソースコード
func _ (-1) _ =((1,0,0),(0,0,0)) func r 0 b=(r,b) func (a,b,c) n _=func (c,a+c,b) (n-1) (a,b,c) sum_ (a,b,c) =a+b+c main = do n<-fmap read getLine::IO Int let (f,b)=func (0,1,0) (n-2) (1,0,0) print$(sum_ f + sum_ b) `mod` 1000000007