diff options
author | root <root@localhost> | 2012-12-30 16:05:36 +0330 |
---|---|---|
committer | Mahrud Sayrafi <mahrud@eve> | 2012-12-30 05:33:01 -0800 |
commit | b300254ee1f308c440d8e8d8129fb863b6ec9599 (patch) | |
tree | 13b4c0871e5ed92b517c002ab815da7f0fe5fbcc /problems/hellow | |
parent | 9cb5ecf6956115140521d74cea8b4191634842fd (diff) | |
download | hellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.tar.gz hellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.tar.xz hellijudge-legacy.git-b300254ee1f308c440d8e8d8129fb863b6ec9599.zip |
Making the legacy more usefulv0.9
Added a brief installation guide in README along with etc config file samples.
Added a couple of useful start and kill scripts in utils folder.
Added two sample problems (one normal one interactive) along with
testers in utils folder.
Diffstat (limited to 'problems/hellow')
-rw-r--r-- | problems/hellow/config | 3 | ||||
-rw-r--r-- | problems/hellow/hellow.cpp | 12 | ||||
-rw-r--r-- | problems/hellow/inits/0.init | 1 | ||||
-rw-r--r-- | problems/hellow/inits/1.init | 1 | ||||
-rw-r--r-- | problems/hellow/inputs/0.in | 1 | ||||
-rw-r--r-- | problems/hellow/inputs/1.in | 1 | ||||
-rwxr-xr-x | problems/hellow/tester | bin | 0 -> 10213 bytes | |||
-rw-r--r-- | problems/hellow/tester.cpp | 23 |
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 Binary files differnew file mode 100755 index 0000000..a61e8c9 --- /dev/null +++ b/problems/hellow/tester 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; +} |