結果
| 問題 |
No.64 XORフィボナッチ数列
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-09-08 10:15:00 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| コンパイル時間 | 2,504 ms |
| コンパイル使用メモリ | 76,828 KB |
| 実行使用メモリ | 46,540 KB |
| 最終ジャッジ日時 | 2025-09-08 10:15:05 |
| 合計ジャッジ時間 | 5,547 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 3 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long f0_ans = scan.nextLong();
long f1_ans = scan.nextLong();
long n = scan.nextLong();
if(n%3 == 0){
System.out.println(f0_ans);
}else if(n%3 == 1){
System.out.println(f1_ans);
}else{
System.out.println(n%3);
}
}
}
Maeda