Search found 3 matches

by chos
Wed Dec 04, 2002 10:07 pm
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 43935

Thank you very much!!!!
by chos
Sat Nov 23, 2002 9:33 am
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 43935

It doesn't work. I still get WA...

Take a view to my code to see if you can find the mistake.

Thanks.

[c]
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>

main ()
{
int num_casos;
int horas[2000];
char linea[257];
char aux1;
char aux2;
int i, j;
int ...
by chos
Fri Nov 22, 2002 8:26 pm
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 43935

10191 - Longest Nap

I need help with the problem 10191: Longest Nap.
I can't get the input well. I've tried with:

1.-
fgets (linea, 256, stdin);
tarea = (t_tarea *) malloc (sizeof (t_tarea));
strcpy (tarea->emp, "");
strcpy (tarea->fin, "");
tarea->emp[0] = linea[0];
tarea->emp[1] = linea[1];
tarea->emp[2 ...

Go to advanced search