結果
| 問題 |
No.8010 Print inside /bin
|
| コンテスト | |
| ユーザー |
mayoko_
|
| 提出日時 | 2015-05-04 00:29:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 1,500 ms |
| コード長 | 370 bytes |
| コンパイル時間 | 1,376 ms |
| コンパイル使用メモリ | 156,440 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-07-05 18:33:25 |
| 合計ジャッジ時間 | 1,626 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:15:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
15 | system( "ls -1 -A /bin | grep \"^[^/.]\" " );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++)
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
system( "ls -1 -A /bin | grep \"^[^/.]\" " );
return 0;
}
mayoko_