Advertisement
fahamidur

2863 light oj 1000

Oct 25th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5.     int a,b,T,i = 0 ;
  6.  
  7.     scanf("%d",&T);
  8.  
  9.  
  10.  
  11.     for (i = 0; i < T; i++){
  12.  
  13.             scanf("%d",&a);
  14.             scanf("%d",&b);
  15.  
  16.     if( T <= 125 && a <= 10 && b <= 10 ) {
  17.  
  18.             printf("Case %d: %d\n",i+1,a+b);
  19.  
  20.         }
  21.     }
  22.  
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement