Search found 1 match

by Kneves
Tue Jun 02, 2009 9:55 pm
Forum: Volume 115 (11500-11599)
Topic: 11507 - Bender B. Rodríguez Problem
Replies: 11
Views: 9153

Re: 11507 - Bender B. Rodriguea Problem

I get WA too.
Can any one hep me...

Whats wrong?


#include <stdio.h>

int main() {
int n;
char estado[2];
char acao[3];

scanf("%d", &n);

while (n) {
n--;
estado[0] = '+';
estado[1] = 'x';

while (n--) {
scanf("%s", acao);
if (estado[1] == 'x' && acao[0] != 'N') {
estado[0] = acao[0 ...

Go to advanced search