結果
| 問題 |
No.8010 Print inside /bin
|
| コンテスト | |
| ユーザー |
ぴろず
|
| 提出日時 | 2015-05-04 00:00:23 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 544 bytes |
| コンパイル時間 | 2,021 ms |
| コンパイル使用メモリ | 75,644 KB |
| 実行使用メモリ | 55,152 KB |
| 最終ジャッジ日時 | 2024-07-05 18:02:22 |
| 合計ジャッジ時間 | 2,725 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
package no3010;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Process pr = Runtime.getRuntime().exec("ls ~/bin -F | grep -v /");
Scanner sc = new Scanner(pr.getInputStream());
ArrayList<String> lis = new ArrayList<>();
while(sc.hasNext()) {
String s = sc.next();
if (s.startsWith(".")) {
continue;
}
lis.add(s);
}
Collections.sort(lis);
for(String s: lis) {
System.out.println(s);
}
}
}
ぴろず