結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | bluemegane |
提出日時 | 2018-09-22 09:30:54 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 58 ms / 5,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 1,911 ms |
コンパイル使用メモリ | 101,868 KB |
実行使用メモリ | 22,884 KB |
最終ジャッジ日時 | 2023-09-25 10:58:07 |
合計ジャッジ時間 | 3,650 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
22,624 KB |
testcase_01 | AC | 56 ms
20,824 KB |
testcase_02 | AC | 56 ms
20,740 KB |
testcase_03 | AC | 57 ms
22,756 KB |
testcase_04 | AC | 56 ms
20,616 KB |
testcase_05 | AC | 56 ms
20,700 KB |
testcase_06 | AC | 56 ms
20,664 KB |
testcase_07 | AC | 57 ms
22,724 KB |
testcase_08 | AC | 56 ms
20,808 KB |
testcase_09 | AC | 58 ms
22,884 KB |
testcase_10 | AC | 57 ms
20,688 KB |
testcase_11 | AC | 56 ms
18,576 KB |
testcase_12 | AC | 56 ms
20,848 KB |
testcase_13 | AC | 56 ms
20,712 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var f0 = long.Parse(line[0]); var f1 = long.Parse(line[1]); var n = long.Parse(line[2]); long ans; if (n % 3 == 0) ans = f0; else if (n % 3 == 1) ans = f1; else ans = f0 ^ f1; Console.WriteLine(ans); } }