結果

問題 No.1499 羊が、何匹だっけ
ユーザー SKSK
提出日時 2022-12-19 15:46:02
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 30,796 KB
実行使用メモリ 150,224 KB
最終ジャッジ日時 2024-04-29 02:17:00
合計ジャッジ時間 3,706 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
30,936 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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]);
     
     for($i = 0; $i < 4;$i++){
         echo $ans[$i]." ";
     }
}


?>
0