Poj Solution 1450

http://poj.org/problem?id=1450



#include <stdio.h>
#include <stdlib.h>
#define DEBUG 0
int main(void) {
    int iCase;
    if(DEBUG)
    freopen("in","r",stdin);
    scanf("%d",&iCase);
    int number;
     for ( number = 1; number <=iCase; ++number) {
      int N,M;
      scanf("%d%d",&M,&N);
      printf("Scenario #%d:n",number);
      printf("%d.",M*N);
      if(M%2&&N%2)printf("41");
      else printf("00");
      printf("nn");
    }
   return 0;
}

											
This entry was posted in poj. Bookmark the permalink.