-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable option for disabling output generation (#104)
- Loading branch information
1 parent
5f3b93f
commit 4919ab6
Showing
17 changed files
with
287 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#include <tcframe/spec.hpp> | ||
|
||
using namespace tcframe; | ||
|
||
class ProblemSpec : public BaseProblemSpec { | ||
protected: | ||
int T; | ||
int A, B; | ||
int res; | ||
|
||
void InputFormat() { | ||
LINE(A, B); | ||
} | ||
|
||
void StyleConfig() { | ||
NoOutput(); | ||
} | ||
|
||
void GradingConfig() { | ||
TimeLimit(2); | ||
MemoryLimit(64); | ||
} | ||
|
||
void MultipleTestCasesConfig() { | ||
Counter(T); | ||
} | ||
|
||
void MultipleTestCasesConstraints() { | ||
CONS(1 <= T && T <= 5); | ||
} | ||
|
||
void Constraints() { | ||
CONS(1 <= A && A <= 100); | ||
CONS(1 <= B && B <= 100); | ||
} | ||
}; | ||
|
||
class TestSpec : public BaseTestSpec<ProblemSpec> { | ||
protected: | ||
void SampleTestCase1() { | ||
Input({ | ||
"1 5" | ||
}); | ||
} | ||
|
||
void SampleTestCase2() { | ||
Input({ | ||
"4 7" | ||
}); | ||
} | ||
|
||
void TestGroup1() { | ||
CASE(A = 1, B = 3); | ||
CASE(A = 2, B = 4); | ||
} | ||
|
||
void TestGroup2() { | ||
CASE(A = 20, B = 30); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#include <tcframe/spec.hpp> | ||
|
||
using namespace tcframe; | ||
|
||
class ProblemSpec : public BaseProblemSpec { | ||
protected: | ||
int A, B; | ||
int res; | ||
|
||
void InputFormat() { | ||
LINE(A, B); | ||
} | ||
|
||
void StyleConfig() { | ||
NoOutput(); | ||
} | ||
|
||
void GradingConfig() { | ||
TimeLimit(2); | ||
MemoryLimit(64); | ||
} | ||
|
||
void Constraints() { | ||
CONS(1 <= A && A <= 10); | ||
CONS(1 <= B && B <= 10); | ||
} | ||
}; | ||
|
||
class TestSpec : public BaseTestSpec<ProblemSpec> { | ||
protected: | ||
void SampleTestCase1() { | ||
Input({ | ||
"1 5" | ||
}); | ||
} | ||
|
||
void TestCases() { | ||
CASE(A = 1, B = 3); | ||
CASE(A = 2, B = 4); | ||
CASE(A = 5, B = 6); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
export TCFRAME_HOME=../../tcframe | ||
|
||
$TCFRAME_HOME/scripts/tcframe build | ||
ls | ||
./runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.