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 listDec 19, 2023 06:50Kenneth MaplesKenneth MaplesScore: 5,325Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2023 06:504,926443,399,929142,854,765027,459,584
2Dec 19, 2023 06:504,932392,492,434143,032,114027,463,680
3Dec 19, 2023 06:504,954459,223,542143,665,147027,463,680
4Dec 19, 2023 06:505,319368,513,943129,959,00024,301,00034,373,632
5Dec 19, 2023 06:505,321364,485,437122,651,00031,652,00033,792,000
6Dec 19, 2023 06:505,325361,352,673122,535,00031,879,00034,025,472
7Dec 19, 2023 06:505,325367,654,036125,159,00029,271,00034,226,176
8Dec 19, 2023 06:505,325359,246,469123,346,00031,087,00034,021,376
9Dec 19, 2023 06:505,329351,462,541116,613,00037,922,00034,095,104
10Dec 19, 2023 06:505,333368,993,995125,148,00029,506,00033,738,752
11Dec 19, 2023 06:505,346356,654,915123,230,00031,801,00034,025,472
12Dec 19, 2023 06:505,375380,972,720130,609,00025,279,00034,177,024