Search found 5 matches

by tiaral
Wed Jun 09, 2004 7:20 am
Forum: C++
Topic: about (++i)+(++i)
Replies: 2
Views: 1618

about (++i)+(++i)

(1)
i=0;
a=(++i)+(++i);
then a==4

(2)
i=0;
a=(++i)+(++i)+(++i);
then a==7

(3)
i=0;
a=(++i)+(++i)+(++i)+(++i);
then a==11

i just test this with vc++ 6.0 & gcc 3.2 for win32
i wonder how to explain it.
by tiaral
Wed Mar 10, 2004 5:27 pm
Forum: Volume 106 (10600-10699)
Topic: 10605 - Mines For Diamonds
Replies: 22
Views: 7676

thanks for your reply.
i have got AC by using backtracking. i wander how someone can solve it in 0ms?
by tiaral
Wed Mar 10, 2004 10:54 am
Forum: Volume 106 (10600-10699)
Topic: 10605 - Mines For Diamonds
Replies: 22
Views: 7676

i still cannot understand the problem.

i still cannot understand the problem.

for this case:
6 3
###
#.#
#*#
#*#
#.#
###

why it has a solution?

and, what does "within a mine there may not be any grid square with more than two directly connected grid squares" mean?
by tiaral
Wed Mar 03, 2004 10:08 am
Forum: C++
Topic: it's time to update the complier
Replies: 3
Views: 1763

it's time to update the complier

the c/c++ complier used in ACM/ICPC final contest 2004 is gcc 3.2, but the one used here is only 2.9.5. There are lots of difference between the two complier.
by tiaral
Sat Feb 14, 2004 5:13 am
Forum: C++
Topic: Why i can not include <streambuf> ??
Replies: 1
Views: 1358

Why i can not include <streambuf> ??

Some data are so big that it takes much time to read.
But when i use file buffer , it can not be compiled on the judger.

Go to advanced search