結果

問題 No.314 ケンケンパ
ユーザー LeonardoneLeonardone
提出日時 2015-12-08 09:50:52
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 5,268 KB
実行使用メモリ 13,908 KB
最終ジャッジ日時 2023-10-12 21:32:12
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 18 ms
13,776 KB
testcase_02 AC 17 ms
11,604 KB
testcase_03 WA -
testcase_04 AC 18 ms
11,604 KB
testcase_05 AC 18 ms
11,772 KB
testcase_06 AC 18 ms
11,632 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(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)))
0