結果

問題 No.64 XORフィボナッチ数列
ユーザー nak2yoshi
提出日時 2016-02-18 18:52:12
言語 D
(dmd 2.109.1)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 704 ms
コンパイル使用メモリ 104,960 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 02:54:51
合計ジャッジ時間 1,322 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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 + 1).array.back.writeln;
}
0