結果
問題 | No.646 逆ピラミッド |
ユーザー | dong_feng |
提出日時 | 2018-06-07 23:40:41 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 18,552 KB |
実行使用メモリ | 18,916 KB |
最終ジャッジ日時 | 2023-09-12 23:11:51 |
合計ジャッジ時間 | 892 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
18,704 KB |
testcase_01 | AC | 16 ms
18,716 KB |
testcase_02 | AC | 15 ms
18,904 KB |
testcase_03 | AC | 16 ms
18,840 KB |
testcase_04 | AC | 15 ms
18,780 KB |
testcase_05 | AC | 16 ms
18,912 KB |
testcase_06 | AC | 16 ms
18,904 KB |
testcase_07 | AC | 16 ms
18,760 KB |
testcase_08 | AC | 15 ms
18,704 KB |
testcase_09 | AC | 15 ms
18,916 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $number=fgets(STDIN); $number = str_replace(array("\r\n","\n","\r"),'',$number); for($i=0;$i<$number;$i++){ $output=''; for($j=$number-$i;$j>0;$j--){ $output = $output.$number; } echo $output.PHP_EOL; }