結果
問題 | No.3010 Print inside /bin |
ユーザー | 👑 tatt61880 |
提出日時 | 2020-04-17 20:43:13 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 2,639 ms |
コンパイル使用メモリ | 155,820 KB |
実行使用メモリ | 4,372 KB |
最終ジャッジ日時 | 2023-10-14 16:10:08 |
合計ジャッジ時間 | 3,126 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
ソースコード
var ans: [][]char func main() do @ans :: #[0][]char do file@forEach("/bin/", false, callback, null) do @ans.sort() for i(0, ^@ans - 1) do cui@print(@ans[i] ~ "\n") end for func callback(path: []char, isDir: bool, data: kuin@Class): bool if(^path <> 5) do @ans :~ ["\{path.sub(5, ^path - 5)}"] end if ret true end func end func