結果

問題 No.64 XORフィボナッチ数列
ユーザー sk3388607083sk3388607083
提出日時 2019-01-24 17:34:32
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 27,336 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 09:40:23
合計ジャッジ時間 832 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
  long int F0, F1, N;
  scanf("%ld %ld %ld", &F0, &F1, &N);

  if (N == 0)
    printf("%ld\n", F0);
  else if (N == 1)
    printf("%ld\n", F1);
  else
    printf("%ld\n", F1 ^ F0);
  
  return 0;
}

0