結果
問題 | No.314 ケンケンパ |
ユーザー |
|
提出日時 | 2015-12-08 09:53:16 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 98 ms / 1,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-09-14 19:50:03 |
合計ジャッジ時間 | 1,783 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
(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 (car (string-split r ".")))