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 14:59Yuriy LyfenkoYuriy LyfenkoScore: 5,940Success
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 14:595,679478,397,545164,679,585027,459,584
2Sep 22, 2021 14:595,701500,669,318165,329,376027,459,584
3Sep 22, 2021 14:595,723491,645,043165,976,983027,451,392
4Sep 22, 2021 14:595,927372,396,519143,576,00028,310,00033,955,840
5Sep 22, 2021 14:595,929366,341,527143,279,00028,655,00033,640,448
6Sep 22, 2021 14:595,932384,196,962145,082,00026,943,00033,374,208
7Sep 22, 2021 14:595,940384,522,464139,405,00032,859,00033,980,416
8Sep 22, 2021 14:595,945367,179,037136,375,00036,042,00034,160,640
9Sep 22, 2021 14:595,951387,175,050134,981,00037,602,00034,234,368
10Sep 22, 2021 14:595,960382,672,765136,721,00036,133,00033,492,992
11Sep 22, 2021 14:595,977381,914,996139,455,00033,867,00033,980,416
12Sep 22, 2021 14:595,981383,095,396146,436,00027,002,00033,718,272