Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #25.0K
~351 People Reached
Favorite Forums
Favorite Tags
2 Posted Topics
Hello! I'm trying to find the longest sequence of equal elements in a matrix M x N. I use two nested for-loops to search into the rows and compare the cells - same thing for the columns. When two adjacent elements are equal, I increment a counter. If the counter …
Re: C++ programm
I suggest you to use the rand() function to generate a pseudo-random number. #include <cstdlib> int target = rand() % 100 + 1;
The End.
Rik30