結果
| 問題 |
No.8010 Print inside /bin
|
| コンテスト | |
| ユーザー |
古寺いろは
|
| 提出日時 | 2015-05-03 23:54:53 |
| 言語 | PHP (843.2) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 1,500 ms |
| コード長 | 315 bytes |
| コンパイル時間 | 1,063 ms |
| コンパイル使用メモリ | 30,724 KB |
| 実行使用メモリ | 31,192 KB |
| 最終ジャッジ日時 | 2024-07-05 18:01:00 |
| 合計ジャッジ時間 | 823 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 );
?>
古寺いろは