projects
/
gruntmaster-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert all test programs from CPP to C
[gruntmaster-daemon.git]
/
t
/
problems
/
aminusb
/
ver.c
diff --git a/t/problems/aminusb/ver.c
b/t/problems/aminusb/ver.c
new file mode 100644
(file)
index 0000000..
3c0c239
--- /dev/null
+++ b/
t/problems/aminusb/ver.c
@@ -0,0
+1,14
@@
+#include <stdio.h>
+
+int main(void){
+ FILE *output = fdopen(3, "r");
+ int a, b, ret;
+ scanf("%d%d", &a, &b);
+ fscanf(output, "%d", &ret);
+ if(a-b == ret){
+ printf("20");
+ return 0;
+ } else
+ return 1;
+}
+
This page took
0.009938 seconds
and
4
git commands to generate.