aboutsummaryrefslogtreecommitdiff
path: root/.boilerplates
diff options
context:
space:
mode:
Diffstat (limited to '.boilerplates')
-rw-r--r--.boilerplates/comp/file.cpp31
-rwxr-xr-x.boilerplates/comp/run6
-rw-r--r--.boilerplates/comp/test.txt0
3 files changed, 37 insertions, 0 deletions
diff --git a/.boilerplates/comp/file.cpp b/.boilerplates/comp/file.cpp
new file mode 100644
index 0000000..ffdf9be
--- /dev/null
+++ b/.boilerplates/comp/file.cpp
@@ -0,0 +1,31 @@
+#include <iostream>
+#include <cmath>
+#include <bits/stdc++.h>
+using namespace std;
+
+#define IOS \
+ ios::sync_with_stdio(0); \
+ cin.tie(0); \
+ cout.tie(0);
+#define int long long
+
+int32_t main()
+{
+ IOS int T;
+ cin >> T;
+ for (int t = 0; t < T; t++) {
+ int n, cnt = 0;
+ cin >> n;
+
+ int a[n];
+ for (int i = 0; i < n; i++) {
+ cin >> a[i];
+ }
+
+ //
+
+ cout << "Case #" << t + 1 << ": " << cnt << endl;
+ }
+
+ return 0;
+}
diff --git a/.boilerplates/comp/run b/.boilerplates/comp/run
new file mode 100755
index 0000000..dae3494
--- /dev/null
+++ b/.boilerplates/comp/run
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+g++ file.cpp || exit 1
+./a.out < test.txt
+
+xclip -selection c < file.cpp
diff --git a/.boilerplates/comp/test.txt b/.boilerplates/comp/test.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.boilerplates/comp/test.txt