結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2021-07-06 15:27:17 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 12:08:45 |
合計ジャッジ時間 | 2,143 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }