TEMA
PROBLEM 1546 - URI Fórum 1.0
Este tema fue resuelto y no puede recibir nuevas respuestas.
-
mstorck respondido 7 years ago
O único que notei aqui foi o nome de um dos membros, você escreveu Odronoel, e o mesmo se chama Odranoel.
-
wsouza12 respondido 7 years ago
#include <stdio.h> main() { int N,K,feed,i,j; scanf("%d",&N); if(1 < N && N < 100) { for(i = 0 ; i < N ; i++) { scanf("%d",&K); if(1 < K && K < 50) { for(j = 0 ; j < K ; j++) { scanf("%d",&feed); switch (feed) { case 1: printf("Rolien\n"); break; case 2: printf("Naej\n"); break; case 3: printf("Elehcim\n"); break; case 4: printf("Odronoel\n"); break; } } } } } }
todos os testes estão corretos alguém poderia me apontar algum erro ?
-
grmachado respondido 8 years ago
Estou recebendo WA de 100%, sendo que o código está funcionando de acordo com o toolkit. Qual pode ser o erro?
#include <iostream> #include <iomanip> #include <math.h> #include <cmath> #include <stdlib.h> #include <string> #include <string.h> #include <stdio.h> #include <time.h> #include <bitset> using namespace std; int main(int argc, char *argv[]) { short nc, numeroFeedbacks, categoria; cin >> nc; if (1 < nc && nc < 100) { for (short i = 0; i < nc; i++) { cin >> numeroFeedbacks; if (1 < numeroFeedbacks && numeroFeedbacks < 50) { short feedbacks[numeroFeedbacks]; for (short j = 0; j < numeroFeedbacks; j++) { cin >> categoria; if (1 <= categoria && categoria <= 4) feedbacks[j] = categoria; } // mostra os responsáveis pelos setores selecionados do dia. for (short z = 0; z < numeroFeedbacks; z++) { switch (feedbacks[z]) { case 1: cout << "Rolien" << endl; break; case 2: cout << "Naej" << endl; break; case 3: cout << "Elehcim" << endl; break; case 4: cout << "Odranoel" << endl; break; } } } } } }
-
lfdsfatec_ipi respondido 8 years ago
Olá , estou com dificuldade neste exercício recebi W.A 100% das seguintes maneiras que fiz : Resolvido ! :) Alguém poderia me ajudar por favor.
-
oman10 respondido 9 years ago
Você não interpretou corretamente a entrada. leia o N leia o K leia o Ki Ex: 2 2 2 1 1 2
N->2 K->2 K[0]->2 K[1]->1 K->1 K[0]->2
Espero ter ajudado. Att. Leoci Melo.
-
Heringer respondido 9 years ago
Olá alguém poderia me ajudar a identificar meu erro ?
vlw
import java.util.Scanner; public class Main { public static void main (String [] args){ Scanner input = new Scanner(System.in); int x, y, i=0, caso=0,t; x = input.nextInt(); y = input.nextInt(); caso = x*y; for(i=0;i<caso;i++){ t = input.nextInt(); switch(t){ case 1: System.out.println("Rolien"); break; case 2: System.out.println("Naej"); break; case 3: System.out.println("Elehcim"); break; case 4: System.out.println("Odranoel"); break; } } } }