結果

問題 No.64 XORフィボナッチ数列
ユーザー papinianuspapinianus
提出日時 2016-06-03 10:53:21
言語 PHP
(8.3.4)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 31,148 KB
最終ジャッジ日時 2024-10-08 06:10:54
合計ジャッジ時間 1,325 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
30,736 KB
testcase_01 AC 43 ms
30,816 KB
testcase_02 AC 43 ms
31,084 KB
testcase_03 AC 44 ms
30,976 KB
testcase_04 AC 43 ms
30,988 KB
testcase_05 AC 42 ms
30,976 KB
testcase_06 AC 42 ms
31,000 KB
testcase_07 AC 43 ms
30,812 KB
testcase_08 AC 42 ms
31,080 KB
testcase_09 AC 42 ms
31,148 KB
testcase_10 AC 42 ms
30,972 KB
testcase_11 AC 45 ms
30,952 KB
testcase_12 AC 41 ms
30,728 KB
testcase_13 AC 41 ms
30,640 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($f[0], $f[1], $n) = explode(' ',trim(fgets(STDIN)));
$f[2] = ($f[0]*1) ^ ($f[1]*1);
$n %= 3;
echo $f[$n].PHP_EOL;
0