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 16, 2021 14:50Ilya AniskovetsIlya AniskovetsScore: 5,509Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 14:505,248466,988,280152,180,204027,447,296
2Oct 16, 2021 14:505,262426,824,249152,584,977027,443,200
3Oct 16, 2021 14:505,286451,209,467153,299,304027,439,104
4Oct 16, 2021 14:505,500368,053,851132,562,00026,926,00033,533,952
5Oct 16, 2021 14:505,503368,354,690134,394,00025,199,00034,131,968
6Oct 16, 2021 14:505,505347,720,205130,991,00028,654,00033,923,072
7Oct 16, 2021 14:505,509369,141,607127,014,00032,746,00033,681,408
8Oct 16, 2021 14:505,510340,307,487130,465,00029,329,00033,898,496
9Oct 16, 2021 14:505,511373,423,278132,831,00026,981,00034,009,088
10Oct 16, 2021 14:505,511346,745,343133,702,00026,113,00034,418,688
11Oct 16, 2021 14:505,517370,827,209124,328,00035,659,00033,742,848
12Oct 16, 2021 14:505,575375,959,887132,000,00029,674,00034,533,376