結果

問題 No.64 XORフィボナッチ数列
ユーザー ねずねず
提出日時 2018-01-28 12:46:48
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 12,076 KB
実行使用メモリ 12,320 KB
最終ジャッジ日時 2023-08-28 13:00:34
合計ジャッジ時間 955 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,204 KB
testcase_01 AC 7 ms
12,224 KB
testcase_02 AC 7 ms
12,176 KB
testcase_03 AC 7 ms
12,196 KB
testcase_04 AC 7 ms
12,172 KB
testcase_05 AC 7 ms
12,220 KB
testcase_06 AC 7 ms
12,176 KB
testcase_07 AC 8 ms
12,320 KB
testcase_08 AC 7 ms
12,236 KB
testcase_09 AC 7 ms
12,280 KB
testcase_10 AC 7 ms
12,176 KB
testcase_11 AC 7 ms
12,252 KB
testcase_12 AC 7 ms
12,248 KB
testcase_13 AC 7 ms
12,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($f0, $f1, $n) = explode(' ', trim(fgets(STDIN)));
switch ($n % 3) {
	case 0 : echo $f0; break;
	case 1 : echo $f1; break;
	case 2 : echo intval($f0) ^ intval($f1); break;
}
?>
0