URI Online Judge | 2581
I am Toorg!
Por Ricardo Martins, IFSULDEMINAS
Brazil
Timelimit: 1
Brazil
Toorg é o integrante mais sábio do grupo de heróis denominado Os Protetores da Via Láctea. Para qualquer pergunta, ele tem a resposta ideal! Escreva um programa que, dada uma pergunta, informe a resposta de Toorg.
Entrada
A entrada terá diversos casos de teste. A cada caso de teste, um número N é apresentado, que representa o número de casos de teste. Em seguida, haverá N linhas, com as perguntas feitas para Toorg.
Saída
Para cada caso de teste, imprima a resposta de Toorg.
URI Online Judge | 2581
I am Toorg!
By Ricardo Martins, IFSULDEMINAS
Brazil
Timelimit: 1
Brazil
Toorg is the wisest member of the group of heroes called The Protectors of the Milky Way. For any question, it has the ideal answer! Write a program that, given a question, tells Toorg's answer.
Input
The input will have several test cases. For each test case, a N number is displayed, which represents the number of test cases. Then there will be N lines, with questions asked for Toorg.
Output
For each test case, print Toorg's answer.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int casos;
char pergunta[500];
scanf("%d", &casos);
getchar();
while (casos--) {
scanf("%[^\n]s", pergunta);
printf("I am Toorg!\n");
getchar();
}
return 0;
}
Nenhum comentário:
Postar um comentário