Aaah!

Question

Solution

Idea

This is a pretty easy question. If the length of line 1 is bigger than or equal to the length of line 2, output go. Otherwise, output no.

Code

https://github.com/mendax1234/Coding-Problems/blob/main/kattis/aaah/aaah.c
#include <stdio.h>
#include <string.h>

int main()
{
  char input1[1001];
  char input2[1001];
  
  scanf("%1000s", input1);
  scanf("%1000s", input2);

  if (strlen(input1) >= strlen(input2))
  {
    printf("go\n");
  }
  else
  {
    printf("no\n");
  }
}

Last updated