Comments (6)
In this build, when we are done participating in a contest and when we create files for a new contest, if suppose for the previous contest some problem A had 3 test cases, and the newer contest it has 2 test cases, then in the problem folder the third test case is not removed, and during execution that test case is evaluated against the solution, and obviously it shows wrong verdict and creates confusion, so please in the next iteration either remove previous contest's problem folder or archive them. Thankyou.
from codeforcescontestbot.
mkdir ~/workspace/cp/CodeforcesContestBot/xArchived/$FOLDER
mv {A..G} ~/workspace/cp/CodeforcesContestBot/xArchived/$FOLDER
export FOLDER=$(echo "${CF_CONTEST//[!0-9]/}")
node script.js
i am using this as a init.sh file to archive old contest cases and populate workspace with new contest's problem folders. But i am not sure how to export an env variable globally through a bash script so i am executing this init.sh file as " . init.sh". Please create a more robust solution.
from codeforcescontestbot.
When you move on to a different contest, you really don't care about test cases of last one. A simple solution would be to simply delete them.
This might not be ideal in case you also want to save your solution.cpp files present in each problem folder.
The ideal fix can be to use the folder structure ./parsed/$contest_number/{A..E}/in*.txt
. This also avoids spamming the root folder.
This will also require change in runall.sh
Would you like to work on this?
from codeforcescontestbot.
Yeah i would like to, i am gonna make these changes and create a pull request to your repo when i get it fully working.
from codeforcescontestbot.
Just clarify one thing sir, only test cases and their test cases will be in the Parsed/Contest directory, or the whole folder including the sol.cpp will be in that directory?
from codeforcescontestbot.
Due to inactivity, I am closing this. However, a simple solution to your problem of removing old test cases is - simply run git reset HEAD --hard
. This will remove all parsed folders or even others which you might have created yourself.
from codeforcescontestbot.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeforcescontestbot.