From 1a86387e6fd279031e4cf1b04f0d749441eca42c Mon Sep 17 00:00:00 2001 From: daleclack Date: Wed, 17 Nov 2021 21:58:48 +0800 Subject: [PATCH] Add script for vscode --- cpp/algorithms/problem5.cpp | 11 +++++++++++ run_code_as_root.sh | 1 + 2 files changed, 12 insertions(+) create mode 100644 cpp/algorithms/problem5.cpp create mode 100644 run_code_as_root.sh diff --git a/cpp/algorithms/problem5.cpp b/cpp/algorithms/problem5.cpp new file mode 100644 index 0000000..d1adcf5 --- /dev/null +++ b/cpp/algorithms/problem5.cpp @@ -0,0 +1,11 @@ +//http://acm.hdu.edu.cn/showproblem.php?pid=2004 +#include + +int main(int argc,char ** argv){ + int score; + while (scanf("%d",&score)!=EOF) + { + /* code */ + } + return 0; +} \ No newline at end of file diff --git a/run_code_as_root.sh b/run_code_as_root.sh new file mode 100644 index 0000000..ef87b0e --- /dev/null +++ b/run_code_as_root.sh @@ -0,0 +1 @@ +sudo code --user-data-dir=$HOME/.config/Code --no-sandbox