結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2016-02-18 19:04:33 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 752 ms |
コンパイル使用メモリ | 107,052 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 02:54:52 |
合計ジャッジ時間 | 1,346 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import std.stdio,std.conv,std.string,std.range,std.math,std.algorithm;void main(){auto input = readln.split.to!(ulong[]);auto F0 = input[0], F1 = input[1], N = input[2];recurrence!"a[n-1]^a[n-2]"(F0, F1).take(N % 3 + 1).array.back.writeln;}