結果
| 問題 | No.8010 Print inside /bin |
| コンテスト | |
| ユーザー |
Kmcode1
|
| 提出日時 | 2015-05-04 00:07:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 918 bytes |
| 記録 | |
| コンパイル時間 | 757 ms |
| コンパイル使用メモリ | 98,420 KB |
| 実行使用メモリ | 6,812 KB |
| 最終ジャッジ日時 | 2024-07-05 18:04:29 |
| 合計ジャッジ時間 | 1,000 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cctype>
#include<cstdlib>
#include<algorithm>
#include<bitset>
#include<vector>
#include<list>
#include<deque>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<ctime>
#include<complex>
#include<functional>
#include<climits>
#include<cassert>
#include<iterator>
#include<valarray>
//#include<bits/stdc++.h>
using namespace std;
//#include <iostream>
//#include <cstdlib>
#include <dirent.h>
int main()
{
const char* path = "/bin";
DIR *dp; // ディレクトリへのポインタ
dirent* entry; // readdir() で返されるエントリーポイント
dp = opendir(path);
if (dp == NULL) exit(1);
do {
entry = readdir(dp);
if (entry != NULL)
std::cout << path << entry->d_name << std::endl;
} while (entry != NULL);
return 0;
}
Kmcode1