add test data
This commit is contained in:
15
test/testcases/gcd.c
Normal file
15
test/testcases/gcd.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "io.inc"
|
||||
|
||||
int gcd(int x, int y) {
|
||||
if (x % y == 0)
|
||||
return y;
|
||||
else
|
||||
return gcd(y, x % y);
|
||||
}
|
||||
|
||||
int main() {
|
||||
printInt(gcd(10, 1));
|
||||
printInt(gcd(34986, 3087));
|
||||
printInt(gcd(2907, 1539));
|
||||
return judgeResult % Mod; // 178
|
||||
}
|
Reference in New Issue
Block a user