From fdaadfd028eaec5840f08621a41d2557832b4001 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 29 Oct 2020 11:17:36 -0500 Subject: [PATCH] Set up environment --- .gitignore | 2 ++ .vscode/launch.json | 17 +++++++++++++++++ .vscode/tasks.json | 17 +++++++++++++++++ ans | 0 in | 0 main.cpp | 14 ++++++++++++++ main2.cpp | 14 ++++++++++++++ main3.cpp | 14 ++++++++++++++ out | 0 9 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 ans create mode 100644 in create mode 100644 main.cpp create mode 100644 main2.cpp create mode 100644 main3.cpp create mode 100644 out diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e193480 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +main* +!main*.cpp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1eac2a2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug", + "type": "gdb", + "request": "launch", + "target": "${fileDirname}/${fileBasenameNoExtension}", + "cwd": "${workspaceRoot}", + "valuesFormatting": "prettyPrinters", + "preLaunchTask": "g++ build active file" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..924320d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "g++ build active file", + "command": "g++", + "args": ["-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}"], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/ans b/ans new file mode 100644 index 0000000..e69de29 diff --git a/in b/in new file mode 100644 index 0000000..e69de29 diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..71201ad --- /dev/null +++ b/main.cpp @@ -0,0 +1,14 @@ +#include +#define f first +#define s second +using namespace std; +using ll = long long; +using ii = pair; +constexpr int MX = 1e5+5; + +int main() { + if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); + + +} diff --git a/main2.cpp b/main2.cpp new file mode 100644 index 0000000..71201ad --- /dev/null +++ b/main2.cpp @@ -0,0 +1,14 @@ +#include +#define f first +#define s second +using namespace std; +using ll = long long; +using ii = pair; +constexpr int MX = 1e5+5; + +int main() { + if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); + + +} diff --git a/main3.cpp b/main3.cpp new file mode 100644 index 0000000..71201ad --- /dev/null +++ b/main3.cpp @@ -0,0 +1,14 @@ +#include +#define f first +#define s second +using namespace std; +using ll = long long; +using ii = pair; +constexpr int MX = 1e5+5; + +int main() { + if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); + ios_base::sync_with_stdio(0), cin.tie(0); + + +} diff --git a/out b/out new file mode 100644 index 0000000..e69de29