wrong answer

baio2033 Reply 7 years 33 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { char c; c = getchar(); while (c != EOF) { if (c == 40) { while (c != 41) { printf("%c", c); c = getchar(); if (c == EOF) return 0; } } else if (c == 47) { c = getchar(); if (c == EOF) return 0; while (c != 47) { c = getchar(); if (c == EOF) return 0; } if (c == 47) c = getchar(); } else { printf("%c", c); c = getchar(); } } } 제대로 출력되는거 같은데 그냥 오답이네요
withcs1 Reply 7 years 33 weeks ago
accept 축하드려요