# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16952 | 2015-11-02T08:32:05 Z | taehoon1018 | MathWorlds (YDX13_mathworlds) | C++ | 0 ms | 0 KB |
int main(void) { double long x, y, z, count = 0; char ch; scanf("%d%d%d", &x, &y, &z); if (x + y == z) { count++; ch = '+'; } if (x - y == z) { ch = '-'; count++; } if (x*y == z) { ch = '*'; count++; } if (x / (float)y == z) { count++; ch = '/'; } if (count == 1) printf("%c", ch); else printf("Invalid"); }