結果

問題 No.102 トランプを奪え
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-21 11:14:24
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 177 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 30,772 KB
実行使用メモリ 31,188 KB
最終ジャッジ日時 2024-04-17 09:58:43
合計ジャッジ時間 1,084 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
30,876 KB
testcase_01 AC 40 ms
30,924 KB
testcase_02 AC 41 ms
31,188 KB
testcase_03 AC 41 ms
30,972 KB
testcase_04 AC 38 ms
30,848 KB
testcase_05 AC 39 ms
30,720 KB
testcase_06 AC 38 ms
30,968 KB
testcase_07 AC 38 ms
30,732 KB
testcase_08 AC 38 ms
30,800 KB
testcase_09 AC 39 ms
30,912 KB
testcase_10 AC 39 ms
30,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$N = explode(" ", trim(fgets(STDIN)));
$grundy = 0;
for($i = 0; $i < 4; $i++) {
  $grundy ^= ($N[$i] % 4);
}
$ans = 'Taro';
if($grundy == 0) $ans = 'Jiro';
print($ans);
?>
0