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 25, 2023 00:34Martin StensgårdMartin StensgårdScore: 6,708Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2023 00:346,377530,811,921184,939,270027,451,392
2May 25, 2023 00:346,382437,035,470185,071,440027,451,392
3May 25, 2023 00:346,436498,982,323186,633,224027,439,104
4May 25, 2023 00:346,694398,341,184163,794,00030,332,00033,792,000
5May 25, 2023 00:346,695401,406,430170,150,00024,009,00033,636,352
6May 25, 2023 00:346,702385,901,637166,894,00027,476,00033,959,936
7May 25, 2023 00:346,708396,644,444167,759,00026,759,00033,890,304
8May 25, 2023 00:346,730389,250,888167,571,00027,588,00033,927,168
9May 25, 2023 00:346,735408,876,543165,806,00029,499,00033,906,688
10May 25, 2023 00:346,738395,945,980162,492,00032,897,00033,746,944
11May 25, 2023 00:346,772393,652,327166,011,00030,367,00033,824,768
12May 25, 2023 00:346,775387,760,400167,679,00028,803,00033,976,320