結果

問題 No.3010 Print inside /bin
ユーザー 古寺いろは古寺いろは
提出日時 2015-05-03 23:54:53
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 315 bytes
コンパイル時間 1,281 ms
コンパイル使用メモリ 18,480 KB
実行使用メモリ 19,008 KB
最終ジャッジ日時 2023-09-19 05:41:19
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?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 );
?>
0