You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Codeforces Parser v1.4.1
1
+
Codeforces Parser v1.5
2
2
=================
3
3
4
4
Summary
@@ -11,15 +11,15 @@ This is a python program that parses the sample tests from the contest problem p
11
11
You can also find this article here, [http://codeforces.com/blog/entry/10416](http://codeforces.com/blog/entry/10416)
12
12
13
13
### Example:
14
-
`./parse.py contest_number (e.g. ./parse.py 464)`
14
+
`./parse.py contest_number (e.g. ./parse.py 513)`
15
15
16
-
Where `464` is the contest number, not the round number! Check the URL of the contest on your browser, that is the number you are supposed to use.
16
+
Where `512` is the contest number, not the round number! Check the URL of the contest on your browser, that is the number you are supposed to use.
17
17
18
18
### Effect:
19
19
20
-
##### What will happen, for example, if `./parse.py 464` is executed?
20
+
##### What will happen, for example, if `./parse.py 512` is executed?
21
21
22
-
1. Directories `464/A`, `464/B`, `464/C`, `464/D` and so on are created depending on the contest number of problems.
22
+
1. Directories `512/A`, `512/B`, `512/C`, `512/D` and so on are created depending on the contest number of problems.
23
23
2. For each problem, `main.cc` is copied and renamed to the problem letter to the corresponding directory. **You can put the path of your usual template in `parse.py:20`**.
24
24
3. Problem page is downloaded from Codeforces website, and parsed. Sample input/output files are generated, e.g. `input1`, `output1`, `input2`, `output2` and so on. You can create your own test cases after that, just keep the same naming format as others test cases.
25
25
4. A script `test.sh` is generated. You can use it to compile and run the sample tests after you finish coding. Just run `./test.sh` in the problem directory.
@@ -28,6 +28,7 @@ Where `464` is the contest number, not the round number! Check the URL of the co
28
28
29
29
1. Compilation: `g++ -g -std=c++0x -Wall $DBG main.cc`. **You can change the compile options in `parse.py:21`**. Variable $DBG is set to -DDEBUG if you start "./test.sh -d", otherwise it is empty. This allows for compilation with and without debug macros.
30
30
2. Run each sample tests on your program (`a.out`), and check the output by `diff`. If it's correct, print **Accepted**, or else print the sample test that went wrong.
31
+
3. Please note that for problems with multiple correct answers it might say that your output is incorrect.
31
32
32
33
### Collaborators and Versions:
33
34
@@ -38,6 +39,9 @@ Where `464` is the contest number, not the round number! Check the URL of the co
38
39
If you have any suggestions and/or bugs drop a message!
39
40
40
41
##### Versions Changes:
42
+
+**1.5:**
43
+
Added debug flag (-d) to enable DEBUG macro (read above for details).
44
+
Fixed problems parsing for problem names that are not called A, B, etc. Such as A1, A2..
41
45
+**1.4.1:**
42
46
Minor fixes, such as typos, bugs and special characters handling.
0 commit comments