結果

問題 No.64 XORフィボナッチ数列
ユーザー うわばみうわばみ
提出日時 2020-04-29 20:30:03
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 486 bytes
コンパイル時間 1,666 ms
コンパイル使用メモリ 63,560 KB
実行使用メモリ 23,856 KB
最終ジャッジ日時 2023-08-19 22:02:19
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
21,972 KB
testcase_01 AC 62 ms
23,724 KB
testcase_02 AC 62 ms
21,884 KB
testcase_03 AC 62 ms
22,004 KB
testcase_04 AC 63 ms
21,872 KB
testcase_05 AC 64 ms
21,856 KB
testcase_06 AC 62 ms
19,936 KB
testcase_07 AC 62 ms
21,804 KB
testcase_08 AC 63 ms
21,924 KB
testcase_09 AC 63 ms
23,856 KB
testcase_10 AC 62 ms
21,952 KB
testcase_11 AC 63 ms
21,788 KB
testcase_12 AC 62 ms
21,736 KB
testcase_13 AC 63 ms
21,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main()
    {
        long[] n = Console.ReadLine().Split().Select(a => long.Parse(a)).ToArray();
        if(n[2] % 3 == 0)
        {
            Console.WriteLine($"{n[0]}");
        }
        else if(n[2] % 3 == 1)
        {
            Console.WriteLine($"{n[1]}");
        }
        else
        {
            Console.WriteLine($"{n[0] ^ n[1]}");
        }
    }
}
0