Would appreciate some help, it keeps on giving me WA on tasks 1, 4, 5, 6, 12 and 13.
Sure, you guys have posted awesome answers, but I really need to find out what's wrong with my code.
#include <iostream>#include <fstream>#include <cstdio>#include <algorithm>#include <climits>using namespace std;int main(){ios_base::sync_with_stdio(false);typedef long int li;li n, x, y, i, start_key, end_key, up, low, mid, start, end, result;bool flag = false;cin>>n>>x>>y;li contest[n][2];li warmholeV[x];
Read more… (38 words)