fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. char buf[100], ch;
  6. scanf("%99s%c", buf, &ch);
  7. if (strcmp(buf, "abc") == 0 && ch == ' ') {
  8. printf("Yes!\n");
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 9424KB
stdin
abc def
stdout
Yes!