Search found 66 matches
- Fri Dec 11, 2009 10:12 pm
- Forum: Off topic (General chit-chat)
- Topic: Who will win the World Cup?
- Replies: 53
- Views: 134997
Re: Who will win the World Cup?
Well, I was wrong. This is football.
- Thu Jun 18, 2009 5:01 pm
- Forum: Off topic (General chit-chat)
- Topic: Who will win the World Cup?
- Replies: 53
- Views: 134997
Re: Who will win the World Cup?
Hello, Just to restart the discussion, as we have seen in the previous editions, the Confederations Cup winner did not won the World Cup, however, I bet for Spain to win both tournaments. Football is a complex game (and so why it is awesome), everything can happen in a game. Today Brazil can beat so...
- Thu May 28, 2009 5:09 pm
- Forum: C
- Topic: compare and swap
- Replies: 3
- Views: 5335
Re: compare and swap
Thanks, man I've found one CAS implemetation on the file /usr/include/asm/system.h of old slackware 10.2 kernel 2.4.31 and it did works. So I just copy it to my project and voilà. Here is the CAS code that worked well for me: #ifndef CAS_H #define CAS_H #define LOCK_PREFIX "lock ; " struct...
- Thu May 28, 2009 5:02 pm
- Forum: C
- Topic: work-stealing deques
- Replies: 0
- Views: 3194
work-stealing deques
Hi there,
I'm here to find some implementation of work-stealing deques without using locks. If anyone of you got one please post it here. It will help me a lot.
I'm here to find some implementation of work-stealing deques without using locks. If anyone of you got one please post it here. It will help me a lot.
- Fri Oct 10, 2008 3:45 pm
- Forum: C
- Topic: compare and swap
- Replies: 3
- Views: 5335
compare and swap
Hello,
is there some kind of compare and swap function or macro available in GNU gcc for linux?
I'm trying to implement a lock-free work-stealing queue...
Thanks
is there some kind of compare and swap function or macro available in GNU gcc for linux?
I'm trying to implement a lock-free work-stealing queue...
Thanks
- Mon Apr 02, 2007 4:40 pm
- Forum: Algorithms
- Topic: Maximum distinguished ones
- Replies: 0
- Views: 1647
Maximum distinguished ones
Hello,
Have you heard about Maximum distinguished ones?
Can you give some URL, explain or algorithm for that?
Thank you
Have you heard about Maximum distinguished ones?
Can you give some URL, explain or algorithm for that?
Thank you
- Fri Mar 09, 2007 2:21 pm
- Forum: Algorithms
- Topic: fill polygon
- Replies: 3
- Views: 2424
- Thu Mar 08, 2007 7:06 pm
- Forum: Volume 1 (100-199)
- Topic: 156 - Ananagrams
- Replies: 30
- Views: 6645
Thanks, did works and I got AC! For those who want help, my ACed code outputs: beloni@hopcroft:~/programming/judge/ananagram_156_0$ cat ananagram.in2 A a a A a a B B B C Hello HELLO Hi REpLy ladder came tape soon leader acme RIDE lone Dreis peat ScAlE orb eye Rides dealer NotE derail LaCeS drIed noe...
- Thu Mar 08, 2007 7:03 pm
- Forum: Algorithms
- Topic: fill polygon
- Replies: 3
- Views: 2424
fill polygon
Hello, I need some help to fill any polygon (concave or convex). The function must receive one point (x,y) inside the shape. I've tried the recurse solution: void fillpoly(int x, int y, int color) { putpixel(x,y,color); if (getpixel(x-1,y) == BLACK) fillpoly(x-1,y,color); if (getpixel(x+1,y) == BLAC...
- Wed Feb 21, 2007 1:06 pm
- Forum: Volume 1 (100-199)
- Topic: 156 - Ananagrams
- Replies: 30
- Views: 6645
Hello,
Can I read the input for this problem this way?
If no, why? Thanks.
Can I read the input for this problem this way?
Code: Select all
char dic[MAX_DIC][MAX_DIC];
while(true)
{
cin >> dic[i];
if( dic[i][0] == '#' )
break;
else
i++;
}
- Wed Dec 06, 2006 6:32 pm
- Forum: C++
- Topic: friend function from a namespace
- Replies: 2
- Views: 2056
- Mon Dec 04, 2006 1:16 pm
- Forum: C++
- Topic: friend function from a namespace
- Replies: 2
- Views: 2056
friend function from a namespace
hello, I want a friend function void set_prob( Combinadic &comb ) to be friend of a class Combinadic . but class Combinadic is splited in two files (combinadic.h and combinadic.cpp). set_prob is extern on a namespace in other file (wildcat.h) and must be implemented in file probability.cpp. it m...
- Thu Nov 30, 2006 5:30 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 56757
- Tue Nov 21, 2006 10:42 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 56757
- Tue Nov 21, 2006 3:00 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10194 - Football (aka Soccer)
- Replies: 121
- Views: 56757