Search found 6 matches

by ebrahim
Fri Jan 12, 2007 1:03 am
Forum: Volume 4 (400-499)
Topic: 416 - LED Test
Replies: 34
Views: 15108

Jan wrote: ...

Input:

Code: Select all

4
YYYYYYN
NYYNNNN
YYNYYNN
YNYYNNN
0
Output:

Code: Select all

MATCH
My AC code gives MISMATCH to this input!
by ebrahim
Wed Jan 10, 2007 1:31 am
Forum: Volume 101 (10100-10199)
Topic: 10140 - Prime Distance
Replies: 17
Views: 9483

10140-Prime Distance WA

I tested my code with all I/O found in the forum and it works, but it gets W.A on the online judge.
Please take a look at my code or provide some I/O.

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>

//#define DEBUG 1

#if DEBUG
#define dump(fmt, x) fprintf(stderr, #x ...
by ebrahim
Sat Jan 06, 2007 10:19 pm
Forum: Other words
Topic: Newcomer problems
Replies: 15
Views: 17429

I don't know whether it's data is up-to-date or not, but anyway it works!
by ebrahim
Sat Jan 06, 2007 7:04 pm
Forum: Other words
Topic: how to readline?
Replies: 2
Views: 2930

Using the magic of scanf:

Code: Select all

char line[MAX_LINE_LENGTH+1];
scanf("%.*[^\n]", MAX_LINE_LENGTH, line);
by ebrahim
Sat Jan 06, 2007 6:42 pm
Forum: Other words
Topic: Newcomer problems
Replies: 15
Views: 17429

Igor's UVa Tools

I use next2solve @ Igor's UVa Tools:
http://shygypsy.com/acm/cgi-bin/next2solve.pl?id=00000
You can put your UVa ID instead of 00000.
by ebrahim
Sat Jan 06, 2007 2:24 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 69533

10062 P.E

I've read other posts about 10062 P.E and I've tried all kind of newline and I don't print newline after the last testcase, but still I get P.E. It's running me mad although I know that P.E is accepted!


#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>

#include <list ...

Go to advanced search