結果
| 問題 |
No.8010 Print inside /bin
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-17 20:38:59 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 494 bytes |
| コンパイル時間 | 2,418 ms |
| コンパイル使用メモリ | 148,360 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-09-16 10:33:13 |
| 合計ジャッジ時間 | 2,884 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
var ans: [][]char
func main()
do @ans :: #[0][]char
do file@forEach("./bin/", true, callback, null)
do @ans.sort()
for i(0, ^@ans - 1)
var s: []char :: @ans[i]
if(s[^s - 1] = '/')
do s :: s.sub(0, ^s - 1)
end if
for j(0, ^s - 1)
if(s[j] = '/')
skip i
end if
end for
do cui@print(s ~ "\n")
end for
func callback(path: []char, isDir: bool, data: kuin@Class): bool
if(^path <> 6)
do @ans :~ ["\{path.sub(6, ^path - 6)}"]
end if
ret true
end func
end func