結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
|
提出日時 | 2015-09-22 23:53:36 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 129 ms / 5,000 ms |
コード長 | 395 bytes |
コンパイル時間 | 3,025 ms |
コンパイル使用メモリ | 73,772 KB |
実行使用メモリ | 54,036 KB |
最終ジャッジ日時 | 2024-07-19 08:43:49 |
合計ジャッジ時間 | 5,411 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import java.util.Scanner;public class Main_yukicoder64 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);long[] f = new long[3];f[0] = sc.nextLong();f[1] = sc.nextLong();f[2] = f[0] ^ f[1];long n = sc.nextLong();System.out.println(f[(int)(n % 3)]);sc.close();}}