Convert all test programs from CPP to C
[gruntmaster-daemon.git] / t / problems / square / ver.c
diff --git a/t/problems/square/ver.c b/t/problems/square/ver.c
new file mode 100644 (file)
index 0000000..0f5008c
--- /dev/null
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int main(void){
+       FILE *output = fdopen(3, "r");
+       int x, ret;
+       scanf("%d", &x);
+       fscanf(output, "%d", &ret);
+       if(x*x == ret){
+               printf("10");
+               return 0;
+       } else
+               return 1;
+}
+
This page took 0.010063 seconds and 4 git commands to generate.