結果

問題 No.1499 羊が、何匹だっけ
ユーザー SKSK
提出日時 2022-12-19 15:50:04
言語 PHP
(8.3.4)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 31,632 KB
最終ジャッジ日時 2024-04-29 02:17:12
合計ジャッジ時間 1,037 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
31,352 KB
testcase_01 AC 39 ms
31,332 KB
testcase_02 AC 39 ms
31,612 KB
testcase_03 AC 39 ms
31,108 KB
testcase_04 AC 38 ms
31,076 KB
testcase_05 AC 38 ms
31,632 KB
testcase_06 AC 37 ms
31,428 KB
testcase_07 AC 38 ms
31,552 KB
testcase_08 AC 39 ms
31,380 KB
testcase_09 AC 38 ms
31,560 KB
testcase_10 AC 39 ms
31,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
for ($i = 0; $i < $n; $i++) {
     $sheep[] = explode(" ",trim(fgets(STDIN)));
     $ans = str_replace($sheep[$i][2],$sheep[$i][2]+1,$sheep[$i]);
     
         echo $ans[0]." ".$ans[1]." ".$ans[2]." ".$ans[3]."\n";
}


?>
0