結果

問題 No.64 XORフィボナッチ数列
ユーザー Mcpu3Mcpu3
提出日時 2018-07-12 17:35:18
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 29,696 KB
実行使用メモリ 14,024 KB
最終ジャッジ日時 2024-04-10 07:30:58
合計ジャッジ時間 6,874 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	long f[3],n,i;
	scanf("%ld%ld%ld",&f[0],&f[1],&n);
	for(i=2;i<=n;i++){
		f[2]=f[0]^f[1];
		f[0]=f[1];
		f[1]=f[2];
	}
	printf("%ld",f[2]);
	return 0;
}
0