diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2019-12-15 15:09:13 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2019-12-15 15:09:13 +0700 |
commit | 9e28e4c7b67c54229df11d355047ac8a88ea1817 (patch) | |
tree | 0d9d40db69613c2c49564a3f1987a005d61f4db3 /NTU/gacho.c | |
parent | 67393f42f41ab92219deb549f711121c4dab845b (diff) | |
download | cp-9e28e4c7b67c54229df11d355047ac8a88ea1817.tar.gz |
Normalize pathname
Diffstat (limited to 'NTU/gacho.c')
-rw-r--r-- | NTU/gacho.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/NTU/gacho.c b/NTU/gacho.c deleted file mode 100644 index 6df8548..0000000 --- a/NTU/gacho.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <stdio.h> - -int main() -{ - long n, m, g, c; - - scanf("%ld %ld", &n, &m); - - g = n*2 - m/2; - c = m/2 - n; - - if ((g + c == n) && (g*2 + c*4 == m) && (g >= 0) && (c >= 0)) - printf("%ld %ld\n", g, c); - else - puts("-1"); - - return 0; -} |