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 listMay 31, 2023 00:50Martin StensgårdMartin StensgårdScore: 7,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2023 00:506,430530,900,140186,467,905027,398,144
2May 31, 2023 00:506,452460,720,237187,112,220027,439,104
3May 31, 2023 00:506,464475,166,982187,443,274027,439,104
4May 31, 2023 00:507,395414,113,285182,398,00032,070,00033,906,688
5May 31, 2023 00:507,398420,436,027187,991,00026,564,00033,452,032
6May 31, 2023 00:507,409421,628,977191,924,00022,947,00033,902,592
7May 31, 2023 00:507,410419,364,300185,494,00029,395,00033,374,208
8May 31, 2023 00:507,413418,250,412181,304,00033,685,00033,640,448
9May 31, 2023 00:507,421420,087,236190,370,00024,830,00033,898,496
10May 31, 2023 00:507,436421,141,690191,575,00024,077,00034,197,504
11May 31, 2023 00:507,448429,438,035189,253,00026,742,00033,906,688
12May 31, 2023 00:507,453432,819,815188,352,00027,789,00033,734,656