| imesecan | Mar.16.2013 at 12:23:34 PM | |
| 0 | The pow(double, double); function requires doubles, when you use with ints, the system gives errors.
either you can write your own function or you can simple say num*num when you want to calculate the square of a number.
|
| imesecan | Mar.16.2013 at 12:32:09 PM
|
| 1 | Сообщение скрыто
|
| imesecan | Mar.16.2013 at 12:35:29 PM | |
| 2 | Try your programs with max limits defined in the question. Check if it still produces the correct result.
|
| imesecan | Mar.16.2013 at 12:40:41 PM
|
| 3 | Сообщение скрыто
|
| imesecan | Mar.16.2013 at 12:47:04 PM | |
| 4 | Don't use int, try using the data type long long
|
| imesecan | Mar.16.2013 at 12:48:42 PM
|
| 5 | Сообщение скрыто
|
| imesecan | Mar.16.2013 at 12:53:47 PM
|
| 6 | Сообщение скрыто
|
| imesecan | Mar.16.2013 at 12:55:17 PM
|
| 7 | Сообщение скрыто
|
| imesecan | Mar.16.2013 at 12:59:20 PM | |
| 8 | See the limits clearly,
1 <= n <= 35000.
???
|