結果

問題 No.64 XORフィボナッチ数列
ユーザー fal_rndfal_rnd
提出日時 2017-09-29 23:53:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 5,000 ms
コード長 572 bytes
コンパイル時間 2,628 ms
コンパイル使用メモリ 84,424 KB
実行使用メモリ 54,180 KB
最終ジャッジ日時 2024-04-27 16:24:10
合計ジャッジ時間 4,177 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
53,932 KB
testcase_01 AC 94 ms
53,032 KB
testcase_02 AC 96 ms
52,916 KB
testcase_03 AC 110 ms
54,000 KB
testcase_04 AC 105 ms
53,956 KB
testcase_05 AC 105 ms
53,992 KB
testcase_06 AC 107 ms
54,068 KB
testcase_07 AC 106 ms
53,912 KB
testcase_08 AC 105 ms
53,876 KB
testcase_09 AC 97 ms
53,040 KB
testcase_10 AC 108 ms
53,972 KB
testcase_11 AC 104 ms
54,180 KB
testcase_12 AC 104 ms
54,112 KB
testcase_13 AC 106 ms
54,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static long getLong(){return Long.parseLong(s.next());}

	public static void main(String[]$){
		long a=getLong(),b=getLong();
		long[]v={a,b,a^b};
		System.out.println(v[(int)(getLong()%3)]);
	}
}
0