結果

問題 No.64 XORフィボナッチ数列
ユーザー mosmos_21mosmos_21
提出日時 2016-10-05 21:45:05
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 175 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 20,736 KB
実行使用メモリ 8,096 KB
最終ジャッジ日時 2024-05-01 13:00:14
合計ジャッジ時間 6,839 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,816 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |   scanf("%lld%lld%lld",&a,&b,&n);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
  long long int a,b,c,n;
  scanf("%lld%lld%lld",&a,&b,&n);
  for(n--;n;n--){
    c = a^b;
    a=b; b=c;
  }
  printf("%lld\n",c);
  return 0;
}
0