結果
| 問題 | No.64 XORフィボナッチ数列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-06 15:27:17 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 36,864 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 23:32:37 |
| 合計ジャッジ時間 | 2,252 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 10 |
ソースコード
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int a, b, c, d, i;
scanf("%d %d %d", &a, &b, &c);
if (c == 0)
printf("%d\n", a);
else {
for (i = 1; i < c; i++) {
d = a ^ b;
a = b;
b = d;
}
printf("%d\n", b);
}
return EXIT_SUCCESS;
}