Search found 2 matches

by nitknight
Mon Oct 14, 2013 8:49 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

Re: 10038 - Jolly Jumpers

brianfry713 wrote:The-PHx, What if n = 3000?
nitknight, you're not clearing s
Thanks brianfry713. It got accepted.
by nitknight
Mon Oct 14, 2013 8:31 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152803

Re: 10038 - Jolly Jumpers

I am getting WA for below code.
Can somebody please help?

#include <iostream>
#include <set>
#include <vector>

using namespace std;

int main()
{
int n = 0;
set<int> s;
vector<bool> ansVec;
while(cin >> n)
{
int a = 0;
int b = 0;
if(n == 1)
{
cin >> a;
ansVec.push_back(true);
continue ...

Go to advanced search