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 06:19Yuriy LyfenkoYuriy LyfenkoScore: 5,359Success
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 06:195,087450,672,932147,517,933027,439,104
2Oct 11, 2021 06:195,143473,890,249149,147,912027,439,104
3Oct 11, 2021 06:195,159516,743,530149,602,236027,443,200
4Oct 11, 2021 06:195,337362,964,609126,442,00028,323,00033,751,040
5Oct 11, 2021 06:195,346342,791,113124,027,00031,006,00033,759,232
6Oct 11, 2021 06:195,350343,157,940120,994,00034,151,00033,796,096
7Oct 11, 2021 06:195,359362,382,947122,187,00033,235,00033,529,856
8Oct 11, 2021 06:195,360337,551,260131,127,00024,322,00034,217,984
9Oct 11, 2021 06:195,363365,260,690130,468,00025,049,00034,058,240
10Oct 11, 2021 06:195,366369,288,680125,487,00030,116,00034,226,176
11Oct 11, 2021 06:195,371359,301,024127,246,00028,503,00033,767,424
12Oct 11, 2021 06:195,437373,698,172121,443,00036,237,00036,102,144