結果
| 問題 | No.314 ケンケンパ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-08 09:50:52 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 5,376 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-09-14 19:50:00 |
| 合計ジャッジ時間 | 1,981 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 WA * 14 |
ソースコード
(define n (read)) (define (f a b c n) (if (= n 0) (remainder (+ a b c) 1000000007) (f (remainder (+ b c) 1000000007) a b (- n 1)))) (define r (number->string (f 0 1 0 (- n 1)))) (print (substring r 0 (- (string-length r) 2)))