1559 - Nim
Moderator: Board moderators
Re: 1559 - Nim
Is here anyone who solved the problem? I am not understanding the statements clearly. Can anyone help me describing the problem with respect to 3rd input output, plz?
-
- Experienced poster
- Posts: 139
- Joined: Wed May 18, 2011 3:04 pm
Re: 1559 - Nim
Test data generator.
Code: Select all
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[])
{
srand(time(NULL));
for (int cs = 1; cs <= 100; cs++)
{
int N = rand() % 10 + 1;
int S = rand() % ((1 << 13) - 1) + 1;
cout << N << ' ' << S;
for (int i = 0; i < 2 * N; i++)
cout << ' ' << (rand() % 16 + 1);
cout << '\n';
}
cout << "0\n";
return 0;
}
metaphysis: http://uhunt.onlinejudge.org/id/95895
My solutions for UVa problems: https://github.com/metaphysis/Code.
My solutions for UVa problems: https://github.com/metaphysis/Code.