結果
| 問題 |
No.64 XORフィボナッチ数列
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-01-19 16:13:39 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 2,557 ms |
| コンパイル使用メモリ | 75,008 KB |
| 実行使用メモリ | 41,668 KB |
| 最終ジャッジ日時 | 2024-12-23 01:30:40 |
| 合計ジャッジ時間 | 5,542 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 RE * 2 |
ソースコード
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]);
}
}
samplelpmas