Hello
after see ur program i think u have to check the count either it is exceeding the limit from 1000 or not
may be it helps u
Search found 2 matches
- Wed Jul 28, 2004 12:00 pm
- Forum: Volume 2 (200-299)
- Topic: 263 - Number Chains
- Replies: 45
- Views: 15814
- Tue Jun 22, 2004 4:20 pm
- Forum: Volume 6 (600-699)
- Topic: 696 - How Many Knights
- Replies: 29
- Views: 16563
696 How many Knight
Whats wrong with my code Y it gives wrong answer :roll:
#include <iostream>
#include <assert.h>
using namespace std;
int main(void)
{
int count = 0;
int j = 0;
int m = 0;
int n = 0;
//int input[1000];
/* for(int i=0;i <100;i++)
input = 0;
while(true)
{
cin>>m>>n;
assert(m <= 500 ...
#include <iostream>
#include <assert.h>
using namespace std;
int main(void)
{
int count = 0;
int j = 0;
int m = 0;
int n = 0;
//int input[1000];
/* for(int i=0;i <100;i++)
input = 0;
while(true)
{
cin>>m>>n;
assert(m <= 500 ...