結果

問題 No.64 XORフィボナッチ数列
ユーザー Himatsubushin
提出日時 2021-07-06 15:35:32
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-01 12:08:54
合計ジャッジ時間 683 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(void) {
  long a, b, c, d;

  scanf("%ld %ld %ld", &a, &b, &c);
  switch (c % 3){
    case 0:
      d = a;
      break;
    case 1:
      d = b;
      break;
    default:
      d = a ^b;
      break;
  }
  printf("%ld\n", d);

  return EXIT_SUCCESS;
}
0