Search found 1 match

by selvakumaronfire
Sat Jan 26, 2008 12:13 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 11702

151 WA

My code is here... it gives correct answers for my own cases..

#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

int func(int N,int m)
{
int cnt,cur=1;
vector<bool> temp(N+1,false);
temp[1]=true;temp[0]=true;
while(cur-1!=13)
{
for(cnt=0;cnt<m;cur++)
{
if(cur ...

Go to advanced search