Can any one help me with the test cases ?so that i can figure it out almost i tried lot of test cases it is giving correct answer ,if i submit this code getting wrong answer :(
http://www.spoj.com/problems/ANARC05B/
#include<bits/stdc++.h> using namespace std; int main() { long int n,m;