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