EZCP
A Rust framework to easily create tasks for competitive programming.
Features:
- Generate test inputs and save them into files.
- Generate correct outputs.
- Optionally have a test input checker.
- Make a solution checker if there are multiple valid solutions.
- Subtask dependencies.
- Graph generator.
- Array generator.
- Add a partial solution and specify which subtasks it should pass.
- Automatically archive all test files into a zip.
Suggestions and bug reports: jakob@zorz.si You can also open a pull request.
Minimal example: (see examples/ for more complete examples)
use Rng;
use PathBuf;
const SOURCE: &str = r#"
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
long long sum=0;
int big=0;
while(n--){
int a;
cin>>a;
big=max(big,a);
sum+=a;
}
cout<<sum-big/2<<"\n";
}
"#;