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
Name of default site to be used when -s flag is not
49
50
specified
50
-
--set-workdir WORKDIR
51
-
ABSOLUTE PATH to working directory
52
-
53
-
```
54
-
During installation, the default site is set to `codeforces` and the default working directory is set to `/home/your-username/ACedIt`. You can change them anytime using the above mentioned flags.
55
-
56
-
ACedIt requires the following working directory structure **(Recommended)**. It also has the added advantage of keeping your work organized :)
57
-
```
58
-
workdir
59
-
|
60
-
|-ACedIt
61
-
| |
62
-
| |- Site1
63
-
| | |- Contest1
64
-
| | | |- Problem1
65
-
| | | |- Problem2
66
-
| | |- Contest2
67
-
| | | |- Problem1
68
-
| | | |- Problem2
69
-
| |- Site2
70
-
| | |- Contest1
71
-
| | | |- Problem1
51
+
--set-default-contest DEFAULT_CONTEST
52
+
Name of default contest to be used when -c flag is not
53
+
specified
72
54
73
55
```
74
-
During installation, ACedIt will set up the basic working directory structure.
75
-
While prefetching test cases, it will modify the same accordingly without any user intervention.
76
-
77
-
***But in case you're writing your code in some other directory, you can use `acedit --run <SOURCE_FILE> -s SITE -c CONTEST -p PROBLEM`. You can omit `-s` as it'll take the default site.***
78
-
79
-
***But there's no need to specify the `-s`, `-c` and `-p` flags if you follow the above mentioned directory structure (ACedIt will create most of it for you on the fly :)***
56
+
During installation, the default site is set to `codeforces`. You can change it anytime using the above mentioned flags.
80
57
81
58
#### Examples
82
59
+ Fetch test cases for a single problem
@@ -91,20 +68,23 @@ acedit -s codechef -c AUG17
91
68
```
92
69
acedit -s codeforces -c 86 -p D -f
93
70
```
94
-
+ Test your code against sample cases (when following the recommended directory structure)
71
+
+ Test your code (when default-site and default-contest is set and filename is same as problem_code)
95
72
```
96
73
acedit --run D.cpp
97
74
```
98
75
```
99
76
acedit --run CHEFFA.py
100
77
```
101
-
+ Test your code against sample cases (from any other directory)
78
+
**Since your filename is same as problem code, there's no need for the `-p` flag.**
79
+
+ Test your code (specifying contest and problem codes explicitly)
There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
87
+
##### Note :
88
+
+ The working directory structure mentioned in the previous versions is no longer required and supported.
89
+
90
+
+ There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
Name of default site to be used when -s flag is not
71
72
specified
72
-
--set-workdir WORKDIR
73
-
ABSOLUTE PATH to working directory
74
-
75
-
During installation, the default site is set to ``codeforces`` and the
76
-
default working directory is set to ``/home/your-username/ACedIt``. You
77
-
can change them anytime using the above mentioned flags.
78
-
79
-
ACedIt requires the following working directory structure
80
-
**(Recommended)**. It also has the added advantage of keeping your work
81
-
organized :)
82
-
83
-
::
84
-
85
-
workdir
86
-
|
87
-
|-ACedIt
88
-
| |
89
-
| |- Site1
90
-
| | |- Contest1
91
-
| | | |- Problem1
92
-
| | | |- Problem2
93
-
| | |- Contest2
94
-
| | | |- Problem1
95
-
| | | |- Problem2
96
-
| |- Site2
97
-
| | |- Contest1
98
-
| | | |- Problem1
99
-
100
-
|During installation, ACedIt will set up the basic working directory structure.
101
-
|While prefetching test cases, it will modify the same accordingly without any user intervention.
102
-
103
-
But in case you’re writing your code in some other directory, you can use ``acedit --run <SOURCE_FILE> -s SITE -c CONTEST -p PROBLEM``. You can omit ``-s`` as it’ll take the default site.
73
+
--set-default-contest DEFAULT_CONTEST
74
+
Name of default contest to be used when -c flag is not
75
+
specified
104
76
105
-
But there’s no need to specify the ``-s``, ``-c`` and ``-p`` flags if you follow the above mentioned directory structure (ACedIt will create most of it for you on the fly :)
77
+
During installation, the default site is set to ``codeforces``. You
78
+
can change it anytime using the above mentioned flags.
106
79
107
80
108
81
Examples
@@ -126,7 +99,7 @@ Examples
126
99
127
100
acedit -s codeforces -c 86 -p D -f
128
101
129
-
- Test your code against sample cases (when following the recommended directory structure)
102
+
- Test your code (when default-site and default-contest is set and filename is same as problem_code)
130
103
131
104
::
132
105
@@ -136,7 +109,9 @@ Examples
136
109
137
110
acedit --run CHEFFA.py
138
111
139
-
- Test your code against sample cases (from any other directory)
112
+
**Since your filename is same as problem code, there's no need for the -p flag.**
113
+
114
+
- Test your code (specifying contest and problem codes explicitly)
140
115
141
116
::
142
117
@@ -149,7 +124,9 @@ Examples
149
124
Note :
150
125
''''''
151
126
152
-
There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
127
+
- The working directory structure mentioned in the previous versions is no longer required and supported.
128
+
129
+
- There might be some issues with Spoj, as they have widely varying DOM trees for different problems. Feel free to contribute on this. Or anything else that you can come up with :)
0 commit comments