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 listAug 17, 2024 09:23Andrey LikhachevAndrey LikhachevScore: 11,916Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 17, 2024 09:2611,883548,808,487344,619,021027,410,432
2Aug 17, 2024 09:2211,886546,554,661344,698,212027,529,216
3Aug 17, 2024 09:2511,889556,597,365344,771,322027,439,104
4Aug 17, 2024 09:2511,910550,807,132345,397,731027,410,432
5Aug 17, 2024 09:2211,914555,972,198345,513,752027,398,144
6Aug 17, 2024 09:2611,914553,317,996345,497,896027,471,872
7Aug 17, 2024 09:2511,916567,746,146345,555,623027,484,160
8Aug 17, 2024 09:2311,919564,854,062345,636,890027,443,200
9Aug 17, 2024 09:2611,922558,121,402345,749,298027,467,776
10Aug 17, 2024 09:2311,925554,459,922345,819,084027,398,144
11Aug 17, 2024 09:2311,932563,138,167346,038,668027,455,488
12Aug 17, 2024 09:2212,314574,502,086357,116,416027,533,312