結果

問題 No.64 XORフィボナッチ数列
ユーザー バカらっくバカらっく
提出日時 2019-09-23 02:21:02
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 326 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 13,243 ms
コンパイル使用メモリ 441,596 KB
実行使用メモリ 54,480 KB
最終ジャッジ日時 2023-10-19 07:52:19
合計ジャッジ時間 17,932 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 316 ms
54,468 KB
testcase_01 AC 318 ms
54,460 KB
testcase_02 AC 319 ms
54,476 KB
testcase_03 AC 318 ms
54,472 KB
testcase_04 AC 319 ms
54,476 KB
testcase_05 AC 326 ms
54,472 KB
testcase_06 AC 319 ms
54,468 KB
testcase_07 AC 321 ms
54,464 KB
testcase_08 AC 318 ms
54,476 KB
testcase_09 AC 318 ms
54,476 KB
testcase_10 AC 321 ms
54,480 KB
testcase_11 AC 324 ms
54,476 KB
testcase_12 AC 320 ms
54,480 KB
testcase_13 AC 322 ms
54,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val (f0,f1, n) = readLine()!!.split(" ").map { it.toLong() }
    val temp = mutableListOf<Long>()
    temp.add(f0)
    temp.add(f1)
    temp.add(f0 xor f1)
    val ans = temp[(n % 3).toInt()]
    println(ans)
}
0