結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2014-12-12 09:42:59 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 5,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 2,036 ms |
コンパイル使用メモリ | 73,872 KB |
実行使用メモリ | 54,396 KB |
最終ジャッジ日時 | 2024-06-11 20:58:01 |
合計ジャッジ時間 | 4,745 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
package no064;import java.util.Scanner;public class Main {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)]);}}