結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | 37zigen |
提出日時 | 2016-04-01 12:11:38 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 2,119 ms |
コンパイル使用メモリ | 74,156 KB |
実行使用メモリ | 54,300 KB |
最終ジャッジ日時 | 2024-04-10 07:04:40 |
合計ジャッジ時間 | 4,944 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 130 ms
54,124 KB |
testcase_01 | AC | 132 ms
54,204 KB |
testcase_02 | AC | 131 ms
54,124 KB |
testcase_03 | AC | 134 ms
54,124 KB |
testcase_04 | AC | 132 ms
54,152 KB |
testcase_05 | AC | 130 ms
54,176 KB |
testcase_06 | AC | 131 ms
54,264 KB |
testcase_07 | AC | 131 ms
53,964 KB |
testcase_08 | AC | 133 ms
54,120 KB |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | AC | 132 ms
54,096 KB |
testcase_13 | RE | - |
ソースコード
package yukicoder064; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); long f0=sc.nextLong(); long f1=sc.nextLong(); int n=sc.nextInt(); //00 0 00 //01 1 01 //10 1 10 //11 0 11 n=n%3; System.out.println(new long[]{f0,f1,f0^f1}[n]); } }