Wednesday, April 2, 2014

codechef REMISS - Chef and Remissness solution

codechef REMISS - Chef and Remissness: http://www.codechef.com/problems/REMISS

codechef REMISS - Chef and Remissness editorial: http://discuss.codechef.com/questions/38453/remiss-editorial

codechef REMISS - Chef and Remissness solution: http://ideone.com/2338bH


#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

int main() {
int t, a, b;
scanf("%d", &t);
while(t--) {
scanf("%d%d", &a, &b);
printf("%d %d\n", max(a, b), a+b);
}
return 0;
}


No comments:

Post a Comment