結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | Himatsubushin |
提出日時 | 2021-07-06 15:28:13 |
言語 | C (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 28,132 KB |
実行使用メモリ | 6,092 KB |
最終ジャッジ日時 | 2023-09-14 04:22:56 |
合計ジャッジ時間 | 6,736 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 0 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 0 ms
4,376 KB |
testcase_05 | AC | 0 ms
4,380 KB |
testcase_06 | AC | 0 ms
4,376 KB |
testcase_07 | AC | 0 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,376 KB |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
ソースコード
#include <stdio.h> #include <stdlib.h> int main(void) { long a, b, c, d, i; scanf("%ld %ld %ld", &a, &b, &c); if (c == 0) printf("%ld\n", a); else { for (i = 1; i < c; i++) { d = a ^ b; a = b; b = d; } printf("%ld\n", b); } return EXIT_SUCCESS; }