Search found 2 matches

by leonardost
Sat Jan 15, 2011 6:38 pm
Forum: C
Topic: Fast I/O Using fread() & fwrite
Replies: 5
Views: 7276

Re: Fast I/O Using fread() & fwrite

That's not quite true, smithdwsn. You can use stdin and stdout in fread() and fwrite() in place of the file handler, and they'll work like scanf() and printf(), albeit in a lower level. You'll have to do your own parsing and formatting, but the speedup can be substantial. I chopped off almost 0.1s ...
by leonardost
Thu Aug 19, 2010 6:06 am
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 6560

Re: 603 - Parking Lot

Hi Mata,

I'm having some troubles with this problem, I get WA, I've try several test cases but can't get AC. Can you help find where my code fails?.

It seems there is indeed something wrong with your code. Experiment with this input:

1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
99
17 ...

Go to advanced search