Problem:
Score : 100 points

Problem Statement

Compute A \times B.

Constraints

1 \leq A \leq 100

1 \leq B \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the value A \times B as an integer.

Sample Input 1

2 5

Sample Output 1

10

We have 2 \times 5 = 10.

Sample Input 2

100 100

Sample Output 2

10000

Solution in C (GCC 9.2.1) (judge verdict: Wrong Answer)

#include<stdio.h>

int main(void){
    long int N;
    int A[100000];
    long int b;
    long int i;
    long int a;

    scanf("%ld", &N);
    
    for(b=0;b<=N-1;b++){
    scanf("%d", &A[b]);
    }
    
     a = A[0];

    for(i=1;i<=N-1;i++){
       a = a*A[i];
    }
    if(a<=1000000000000000000){
    printf("%ld\n",a);
    return 0;
    }
    else{
    printf("-1\n");
    return 0;
    }
    return 0;
    
}