Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listOct 11, 2021 03:43Yuriy LyfenkoYuriy LyfenkoScore: 5,813Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 03:435,670459,987,572164,441,124027,447,296
2Oct 11, 2021 03:435,678491,792,231164,673,137027,443,200
3Oct 11, 2021 03:435,700504,387,635165,291,567027,443,200
4Oct 11, 2021 03:435,786364,706,099141,891,00025,892,00033,660,928
5Oct 11, 2021 03:435,791376,106,383136,950,00030,988,00033,484,800
6Oct 11, 2021 03:435,804364,955,774141,635,00026,684,00033,812,480
7Oct 11, 2021 03:435,813383,330,635135,060,00033,518,00033,878,016
8Oct 11, 2021 03:435,814369,982,503143,786,00024,826,00033,792,000
9Oct 11, 2021 03:435,816363,070,054135,331,00033,342,00034,320,384
10Oct 11, 2021 03:435,826378,640,384136,962,00031,991,00034,037,760
11Oct 11, 2021 03:435,828376,668,001146,689,00022,322,00033,861,632
12Oct 11, 2021 03:435,837372,418,746137,400,00031,860,00034,369,536