Whats the mistake 1tc is failed?

@garganshul151 length of each number can be upto 100, int will not be able to accomodate such a large number so take input using a string

can i use long int or long long int?

@garganshul151 no their range is also not sufficient.