結果

問題 No.1499 羊が、何匹だっけ
ユーザー kwkkwk
提出日時 2022-12-12 16:09:29
言語 PHP
(8.3.4)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 30,716 KB
実行使用メモリ 31,004 KB
最終ジャッジ日時 2024-04-24 06:47:06
合計ジャッジ時間 1,065 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
30,840 KB
testcase_01 AC 38 ms
31,004 KB
testcase_02 AC 36 ms
30,876 KB
testcase_03 AC 37 ms
30,880 KB
testcase_04 AC 35 ms
30,712 KB
testcase_05 AC 35 ms
30,896 KB
testcase_06 AC 34 ms
30,768 KB
testcase_07 AC 34 ms
30,780 KB
testcase_08 AC 36 ms
30,756 KB
testcase_09 AC 34 ms
30,656 KB
testcase_10 AC 35 ms
30,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$n = trim(fgets(STDIN));

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

?>
0