結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | tsunabit |
提出日時 | 2018-08-19 13:51:10 |
言語 | Java19 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 491 bytes |
コンパイル時間 | 3,382 ms |
コンパイル使用メモリ | 79,820 KB |
実行使用メモリ | 56,212 KB |
最終ジャッジ日時 | 2023-08-10 19:19:39 |
合計ジャッジ時間 | 6,155 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 119 ms
55,976 KB |
testcase_01 | AC | 117 ms
56,168 KB |
testcase_02 | AC | 116 ms
56,164 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 | 119 ms
55,708 KB |
testcase_13 | RE | - |
ソースコード
import java.util.*; import java.util.stream.Stream; import java.time.*; import java.time.format.*; public class No64 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int f0 = sc.nextInt(); int f1 = sc.nextInt(); int n = sc.nextInt(); if(n%3 == 0) { System.out.println(f0); }else if(n%3 == 1) { System.out.println(f1); }else { System.out.println(f0 ^ f1); } } }