Skip to content

UVa 465

WinDaLex edited this page Sep 15, 2013 · 1 revision

Overflow

from Volume 1. Elementary Problem Solving :: Big Number

Description

给一个加法或乘法表达式。判断加数及和有没有超过int的能够表示的范围(2147483647)。

Solution

要用高精度加法和乘法。剩下的就是简单判断一下是否大于2147483647。

Clone this wiki locally