結果

問題 No.64 XORフィボナッチ数列
ユーザー jp_stejp_ste
提出日時 2020-05-12 23:23:10
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 41,076 KB
最終ジャッジ日時 2024-04-21 03:32:09
合計ジャッジ時間 1,620 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
39,040 KB
testcase_01 AC 66 ms
39,168 KB
testcase_02 AC 62 ms
39,040 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 61 ms
39,168 KB
testcase_13 AC 65 ms
39,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function main(input) {
  let L = input.shift().split(" ").map(x=>Number(x));
  let N = L[2];
  L[2] = L[0]^L[1];
  console.log(L[N%3]);
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));
0