add test data
This commit is contained in:
15
test/testcases/tak.c
Normal file
15
test/testcases/tak.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "io.inc"
|
||||
int tak(int x, int y, int z) {
|
||||
if (y < x)
|
||||
return 1 + tak(tak(x - 1, y, z), tak(y - 1, z, x), tak(z - 1, x, y));
|
||||
else
|
||||
return z;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int a = 18;
|
||||
int b = 12;
|
||||
int c = 6;
|
||||
printInt(tak(a, b, c));
|
||||
return judgeResult % Mod; // 186
|
||||
}
|
Reference in New Issue
Block a user