結果

問題 No.64 XORフィボナッチ数列
ユーザー TatsuDX
提出日時 2016-09-08 23:41:40
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 3,620 ms
コンパイル使用メモリ 75,900 KB
実行使用メモリ 54,524 KB
最終ジャッジ日時 2024-11-15 22:28:49
合計ジャッジ時間 6,365 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
		}
	}
}
0