fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int q,w,a,c;
  5. scanf("%d",&a);
  6. for(c=0;c<a;c++)
  7. {
  8. scanf("%d %d",&q,&w) ;
  9. if(q>w)
  10. {
  11. printf("%d\n",q) ;
  12. }
  13. else
  14. {
  15. printf("%d\n",w) ;
  16. }
  17. }
  18. return 0 ;
  19. }
Success #stdin #stdout 0s 5288KB
stdin
4
2 5
3 6
2 2
3 1
stdout
5
6
2
3