結果

問題 No.64 XORフィボナッチ数列
ユーザー bayashiko_rbayashiko_r
提出日時 2018-11-14 00:57:15
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 531 bytes
コンパイル時間 1,972 ms
コンパイル使用メモリ 99,300 KB
実行使用メモリ 22,728 KB
最終ジャッジ日時 2023-08-26 00:59:54
合計ジャッジ時間 3,966 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,728 KB
testcase_01 AC 59 ms
22,584 KB
testcase_02 AC 58 ms
20,680 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 57 ms
20,620 KB
testcase_13 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program {
    static void Main(string[] args) {
        //入力
        string s = Console.ReadLine();
        string[] t = s.Split(' ');
        //数字の割り当て
        int F0 = int.Parse(t[0]);
        int F1 = int.Parse(t[1]);
        int N = int.Parse(t[2]);

        //Nのmodで場合分け
        if (N % 3 == 0) {
            Console.WriteLine(F0);
        } else if (N % 3 == 1) {
            Console.WriteLine(F1);
        } else {
            Console.WriteLine(F0 ^ F1);
        }
    }
}
0