summaryrefslogtreecommitdiffstats
path: root/problems/hellow
diff options
context:
space:
mode:
Diffstat (limited to 'problems/hellow')
-rw-r--r--problems/hellow/config3
-rw-r--r--problems/hellow/hellow.cpp12
-rw-r--r--problems/hellow/inits/0.init1
-rw-r--r--problems/hellow/inits/1.init1
-rw-r--r--problems/hellow/inputs/0.in1
-rw-r--r--problems/hellow/inputs/1.in1
-rwxr-xr-xproblems/hellow/testerbin0 -> 10213 bytes
-rw-r--r--problems/hellow/tester.cpp23
8 files changed, 42 insertions, 0 deletions
diff --git a/problems/hellow/config b/problems/hellow/config
new file mode 100644
index 0000000..5e78526
--- /dev/null
+++ b/problems/hellow/config
@@ -0,0 +1,3 @@
+2
+default
+normal 1 16384 %n.in
diff --git a/problems/hellow/hellow.cpp b/problems/hellow/hellow.cpp
new file mode 100644
index 0000000..f1255ce
--- /dev/null
+++ b/problems/hellow/hellow.cpp
@@ -0,0 +1,12 @@
+#include <iostream>
+
+using namespace std;
+
+int main()
+{
+ int n;
+ cin >> n;
+ cout << 3 * n << endl;
+ return 0;
+}
+
diff --git a/problems/hellow/inits/0.init b/problems/hellow/inits/0.init
new file mode 100644
index 0000000..697cb3a
--- /dev/null
+++ b/problems/hellow/inits/0.init
@@ -0,0 +1 @@
+300
diff --git a/problems/hellow/inits/1.init b/problems/hellow/inits/1.init
new file mode 100644
index 0000000..a83d1d5
--- /dev/null
+++ b/problems/hellow/inits/1.init
@@ -0,0 +1 @@
+-3
diff --git a/problems/hellow/inputs/0.in b/problems/hellow/inputs/0.in
new file mode 100644
index 0000000..29d6383
--- /dev/null
+++ b/problems/hellow/inputs/0.in
@@ -0,0 +1 @@
+100
diff --git a/problems/hellow/inputs/1.in b/problems/hellow/inputs/1.in
new file mode 100644
index 0000000..3a2e3f4
--- /dev/null
+++ b/problems/hellow/inputs/1.in
@@ -0,0 +1 @@
+-1
diff --git a/problems/hellow/tester b/problems/hellow/tester
new file mode 100755
index 0000000..a61e8c9
--- /dev/null
+++ b/problems/hellow/tester
Binary files differ
diff --git a/problems/hellow/tester.cpp b/problems/hellow/tester.cpp
new file mode 100644
index 0000000..f20ffdc
--- /dev/null
+++ b/problems/hellow/tester.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+#include <fstream>
+#include <string>
+#include <cstdlib>
+
+using namespace std;
+
+int main(int argc, char* argv[])
+{
+ ifstream fin (argv[1]);
+ int z, y;
+ fin >> z;
+ cin >> y;
+ if(z == y)
+ {
+// cerr << "Correct!" << endl;
+ cerr << 100 << endl;
+ return 0;
+ }
+// cerr << "Wrong!" << endl;
+ cerr << 0 << endl;
+ return 0;
+}