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 30, 2023 22:13Martin StensgårdMartin StensgårdScore: 6,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 30, 2023 22:136,572480,536,967190,594,217027,463,680
2May 30, 2023 22:136,626535,088,848192,144,865027,455,488
3May 30, 2023 22:136,639510,799,323192,540,167027,451,392
4May 30, 2023 22:136,856400,465,532168,017,00030,819,00033,640,448
5May 30, 2023 22:136,870378,408,206171,650,00027,586,00033,988,608
6May 30, 2023 22:136,888415,661,754167,785,00031,959,00034,148,352
7May 30, 2023 22:136,900409,860,626167,250,00032,852,00033,648,640
8May 30, 2023 22:136,902418,910,462178,750,00021,407,00033,382,400
9May 30, 2023 22:136,905406,107,521179,163,00021,078,00033,464,320
10May 30, 2023 22:136,908390,098,655178,078,00022,259,00033,918,976
11May 30, 2023 22:136,940405,263,499178,322,00022,942,00033,390,592
12May 30, 2023 22:136,956389,745,944172,180,00029,545,00034,033,664