I got AC today, but with 8.889 seconds. I guess this would get TLE in competition, is that right?
To find a cycle, I do the following:
1. I flood fill the region beginning at some position and count the numbers of squares = numberOfElements;
2. I flood fill again, but this time I check if next ...
Search found 23 matches
- Sun Aug 05, 2007 11:05 pm
- Forum: Volume 7 (700-799)
- Topic: 705 - Slash Maze
- Replies: 13
- Views: 12857
- Sun Aug 05, 2007 10:47 pm
- Forum: Volume 7 (700-799)
- Topic: 705 - Slash Maze
- Replies: 13
- Views: 12857
The tests posted by jaywinyeah:
aren't tested by the judge. The problem statement says that w, h are in the range [1, 75].
Code: Select all
0 1
1 0
- Sat Aug 04, 2007 11:10 pm
- Forum: Volume 7 (700-799)
- Topic: 705 - Slash Maze
- Replies: 13
- Views: 12857
- Sat Aug 04, 2007 1:27 am
- Forum: Volume 102 (10200-10299)
- Topic: 10209 - Is This Integration ?
- Replies: 37
- Views: 15962
Thank you tgoulart!
I got AC today! =D I was misusing the integral. I saw yor third figure and I figured out my error. With your third picture I got te third equation.
I'll explain how I solve this problem, since the equations given in previous codes in this forum are too hard to understand. Let's ...
I got AC today! =D I was misusing the integral. I saw yor third figure and I figured out my error. With your third picture I got te third equation.
I'll explain how I solve this problem, since the equations given in previous codes in this forum are too hard to understand. Let's ...
- Thu Aug 02, 2007 2:59 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10209 - Is This Integration ?
- Replies: 37
- Views: 15962
- Thu Jul 26, 2007 7:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 48662
- Tue Jul 24, 2007 6:21 am
- Forum: Volume 8 (800-899)
- Topic: 825 - Walking on the Safe Side
- Replies: 38
- Views: 27519
- Sun Oct 29, 2006 12:03 am
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 16304
- Sat Oct 28, 2006 2:47 am
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 16304
- Fri Oct 27, 2006 11:54 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 16304
- Fri Oct 27, 2006 10:40 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 16304
- Fri Oct 27, 2006 9:28 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11140 - Little Ali's Little Brother!
- Replies: 28
- Views: 16304
- Fri Oct 20, 2006 8:02 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 45327
Hi!
Try to use the function memset. It is very fast to initialize arrays of chars. More information at http://www.cppreference.com/stdstring/memset.html
Hope it helps!
Try to use the function memset. It is very fast to initialize arrays of chars. More information at http://www.cppreference.com/stdstring/memset.html
Hope it helps!
- Thu Aug 31, 2006 10:11 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 27574
- Thu Aug 31, 2006 4:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 27574
WA
Hi!
Could someone give me some input/output for this problem?
Thanks in advance!

Could someone give me some input/output for this problem?
Thanks in advance!
