結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | TatsuDX |
提出日時 | 2016-09-08 23:41:40 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 2,687 ms |
コンパイル使用メモリ | 73,920 KB |
実行使用メモリ | 54,628 KB |
最終ジャッジ日時 | 2024-04-27 18:07:22 |
合計ジャッジ時間 | 4,834 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 107 ms
54,024 KB |
testcase_01 | AC | 111 ms
53,916 KB |
testcase_02 | AC | 106 ms
53,856 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 | 110 ms
54,012 KB |
testcase_13 | RE | - |
ソースコード
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextInt(), b = sc.nextInt(), c = a^b, n = sc.nextInt(); if(n%3 == 0){ System.out.println(a); } else if(n%3 == 1){ System.out.println(b); } else { System.out.println(c); } } }