/* * Solution Template for Mixed Fraction * * This file is provided to assist with reading of input and writing of output * for the problem. You may modify this file however you wish, or * you may choose not to use this file at all. */ #include int n; int d; int a; int b; int main(void) { /* Read the input. */ scanf("%d%d", &n, &d); /* * TODO: This is where you should compute the answer and store them into * the variables a and b. */ /* Write the answer. */ if (b != 0) { printf("%d\n", a); } else { printf("%d\n", a); } return 0; }