This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int n; | |
vector<int> a; | |
int dp[1<<20][2]; | |
int rec(int lft_mask, int turn) { | |
if (lft_mask == 0) { | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************** | |
* AUTHOR: BHUVNESH JAIN * | |
* INSTITUITION: BITS PILANI, PILANI * | |
******************************************/ | |
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long long LL; | |
typedef long double LD; | |
OlderNewer