結果
| 問題 | No.8010 Print inside /bin |
| コンテスト | |
| ユーザー |
古寺いろは
|
| 提出日時 | 2015-05-03 23:54:53 |
| 言語 | PHP (8.5.4) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 1,500 ms |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 1,028 ms |
| コンパイル使用メモリ | 37,748 KB |
| 実行使用メモリ | 37,744 KB |
| 最終ジャッジ日時 | 2026-03-27 03:23:43 |
| 合計ジャッジ時間 | 1,796 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$array = array();
$res_dir = opendir( '/bin' );
$count = 0;
while( $file_name = readdir( $res_dir ) ){
if($file_name[0] != '.'){
$array[$count] = $file_name;
$count = $count + 1;
}
}
natsort($array);
foreach ($array as $i => $value) {
print $array[$i];
print "\n";
}
closedir( $res_dir );
?>
古寺いろは