Re: [gcj] Re: 2020 1B P1 Expogo: solution using bitwise operations. (fails with WA though). Am I wrong with the approach or is just a bug in code?

2020-04-21 Thread Aditya Vikram Jain
Hi Alexander, I used similar approach and I think I found out why it is wrong, basically the solution just assumes that we need to convert the solution into two numbers which on xored give 0 and and the or operation between the two gives 2^(n-1), but this approach marks many possible answers

[gcj] Parenting Partnering WA, please help

2020-04-06 Thread Aditya Vikram Jain
I'm not able to make out why my code below fails. Any help would be most welcome #include #include #include #include #include using namespace std; int main(){ int T; cin>>T; for(int tc = 1;tc<=T;tc++){ int N; cin >> N; vector,int > > vData; pair

[gcj] Clarification Regarding the Source code submission

2014-04-12 Thread Aditya Vikram Jain
Hi, I have submitted the solution to a small test-set of a problem and it was judged correct. I doubt that I have uploaded the source code for some other problem there. How can I re-submit ? I am assuming that since we are allowed to have multiple wrong tries for the small test-sets, one should