結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
31,060 KB
testcase_01 AC 43 ms
31,280 KB
testcase_02 AC 42 ms
31,204 KB
testcase_03 AC 43 ms
31,252 KB
testcase_04 AC 42 ms
31,532 KB
testcase_05 AC 44 ms
31,164 KB
testcase_06 AC 42 ms
31,344 KB
testcase_07 AC 44 ms
31,208 KB
testcase_08 AC 42 ms
31,256 KB
testcase_09 AC 41 ms
31,304 KB
testcase_10 AC 41 ms
31,232 KB
testcase_11 AC 41 ms
31,236 KB
testcase_12 AC 41 ms
30,964 KB
testcase_13 AC 42 ms
31,208 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