Saturday, July 15, 2017

URI problem 1865 solution in C | (Mjölnir)

#include<stdio.h>
int main()
{
    int C,i,b;
    char str[100];
    scanf("%d",&C);
    for(i = 0;i < C;i++){
        scanf("%s %d",str,&b);
        if(!strcmp(str, "Thor"))printf("Y\n");
        else printf("N\n");
    }
    return 0;
}

No comments:

Post a Comment