結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2019-12-14 21:49:37 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 532 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 03:26:01 |
合計ジャッジ時間 | 1,191 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <stdio.h>int main() {long long f0, f1, n;scanf("%lld %lld %lld", &f0, &f1, &n);int rem=n%3;long long arr[3]={f0, f1, f0^f1};printf("%lld\n", arr[rem]);return 0;}