Search found 2 matches

by Moecdx
Fri Mar 31, 2006 7:24 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

comment added

Code: Select all

if(numElements == 1)
		{
			//This next line is to get the number, which i don care about, just put it in any variable
			cin>>numElements;
			cout<<"Jolly\n";
		}
by Moecdx
Fri Mar 31, 2006 7:21 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

10038 Time Limit Exceeded...beleive or not!!

I donno y am i getting Time Limit Exceeded for such a problem..my code is very straight forward,

#include <iostream>

using namespace std;

const int MAX = 3000;

int main()
{
int numElements;
int elements[MAX];
int diffs[MAX];
int diff;
int i;
bool jolly;

while(true)
{
jolly = true ...

Go to advanced search