Or are these invalid test cases?
Thanks.
First I must say I didn't try to solve this problem.
It is assumed, as a simplification, that no coincidences may occur between coordinates of singular points (intersections or end points).
I think this implies your test cases are invalid since the ...
Search found 214 matches
- Thu Aug 04, 2005 4:56 pm
- Forum: Volume 8 (800-899)
- Topic: 866 - Intersecting Line Segments
- Replies: 9
- Views: 6827
- Thu Aug 04, 2005 10:56 am
- Forum: Volume 5 (500-599)
- Topic: 585 - Triangles
- Replies: 16
- Views: 7866
Re: 585 Triangles.. WA..
probably i didn't get the problem correctly
#########
#---###
#-###
###
#
i checked some articles here..
but i still don't know why the answer for that case is not 4 but 1..
I'm not experienced in ASCII art but this should show why the answer is 1 ...
#########
#---###
#-###
###
#
i checked some articles here..
but i still don't know why the answer for that case is not 4 but 1..
I'm not experienced in ASCII art but this should show why the answer is 1 ...
- Fri Jul 29, 2005 11:36 am
- Forum: C
- Topic: Passing variable number of arguments to functions..
- Replies: 6
- Views: 8336
- Thu Jul 28, 2005 8:49 am
- Forum: C++
- Topic: Watch this simple program, what's wrong?
- Replies: 3
- Views: 3002
Re: Watch this simple program, what's wrong?
the output is 0000000000.
but when I change the code to "int value=1;", the output is 16843009 16843009 16843009 16843009 16843009 16843009 16843009 16843009 16843009 16843009.
Why??!! (I use Visual C++ 6.0)
16843009 expressed in binary is 00000001000000010000000100000001
since you're memsetting ...
- Wed Jul 27, 2005 2:37 pm
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58579
- Wed Jul 27, 2005 1:20 pm
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58579
It is:Morning wrote:yeah,it's dfs,actually.
but it isnt why i got WA,is it?
Code: Select all
4
1 2 2 3 3 4 1 3
1 2 0 0
0
Ciao!!!
Claudio
- Wed Jul 27, 2005 10:21 am
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58579
If I understand it correctly your bfs isn't a real bfs...Morning wrote:Code: Select all
void bfs(int begin,int ttl) { visited[begin] = 1; if(ttl == 0) return; int i; for(i = 0;i < MAX_NODE;i++) { if(graph[begin][i] == 1 && visited[i] == 0) { cnt++; bfs(i,ttl - 1); } } }
Ciao!!!
Claudio
- Wed Jul 27, 2005 10:07 am
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58579
- Tue Jul 05, 2005 5:23 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10763 - Foreign Exchange
- Replies: 45
- Views: 24770
- Tue Jul 05, 2005 4:58 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10763 - Foreign Exchange
- Replies: 45
- Views: 24770
- Mon Jul 04, 2005 12:28 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155449
- Tue Jun 28, 2005 5:54 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !!
- Replies: 361
- Views: 155449
There is a way to win without being an admin and then being banned from the board by an adminmisof wrote:Did anyone notice that an admin may win simply by posting here and locking the thread?

Look at this thead and be gentle with the board!!!
Ciao!!!
Claudio
- Tue Jun 28, 2005 5:35 pm
- Forum: Off topic (General chit-chat)
- Topic: I win !! (the proper way!!!)
- Replies: 2
- Views: 2883
I win !! (the proper way!!!)
This is a game!
The rule of this game is :
The first poster of this thread will be winner.
Look, I win!!!

Ciao!!!
Claudio
The rule of this game is :
The first poster of this thread will be winner.
Look, I win!!!


Ciao!!!
Claudio
- Thu Jun 23, 2005 9:54 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50089
Re: prototype.
scanf( const char *format, ... );
must be pointer variables like int* , char *, double*, in the "..."
so,
scanf("%lf", &p);
abhijit correctly used the address of integer variables in his scanf.
His problem was exactly answered by his followup.
In C undeclared functions are assumed to return ...
must be pointer variables like int* , char *, double*, in the "..."
so,
scanf("%lf", &p);
abhijit correctly used the address of integer variables in his scanf.
His problem was exactly answered by his followup.
In C undeclared functions are assumed to return ...
- Wed Jun 22, 2005 9:43 am
- Forum: Volume 103 (10300-10399)
- Topic: 10397 - Connect the Campus
- Replies: 75
- Views: 38455