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 listSep 22, 2021 16:23Yuriy LyfenkoYuriy LyfenkoScore: 5,682Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 16:235,425530,695,871157,333,894027,443,200
2Sep 22, 2021 16:235,480574,168,301158,913,663027,443,200
3Sep 22, 2021 16:235,481481,714,719158,962,371027,439,104
4Sep 22, 2021 16:235,661376,762,350129,959,00034,199,00033,554,432
5Sep 22, 2021 16:235,677368,570,341134,339,00030,302,00033,636,352
6Sep 22, 2021 16:235,678355,653,666140,534,00024,121,00033,910,784
7Sep 22, 2021 16:235,682378,783,007141,539,00023,237,00033,370,112
8Sep 22, 2021 16:235,686381,107,158132,315,00032,585,00033,796,096
9Sep 22, 2021 16:235,686350,156,570130,549,00034,355,00033,927,168
10Sep 22, 2021 16:235,697377,573,589134,628,00030,597,00034,025,472
11Sep 22, 2021 16:235,707370,462,495132,594,00032,899,00033,722,368
12Sep 22, 2021 16:235,717352,057,008135,472,00030,329,00034,017,280