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 listOct 10, 2021 03:41Yuriy LyfenkoYuriy LyfenkoScore: 5,954Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 03:415,715387,325,993165,728,735027,463,680
2Oct 10, 2021 03:415,716418,517,084165,758,732027,451,392
3Oct 10, 2021 03:415,729430,808,592166,126,918027,467,776
4Oct 10, 2021 03:415,925389,719,643128,148,00043,687,00033,648,640
5Oct 10, 2021 03:415,932365,968,157133,797,00038,227,00034,148,352
6Oct 10, 2021 03:415,954371,973,041133,253,00039,413,00034,131,968
7Oct 10, 2021 03:415,954374,374,520139,509,00033,170,00034,168,832
8Oct 10, 2021 03:415,964395,880,962140,294,00032,671,00033,759,232
9Oct 10, 2021 03:415,977392,791,102142,619,00030,702,00033,882,112
10Oct 10, 2021 03:415,985406,465,151134,256,00039,318,00034,693,120
11Oct 10, 2021 03:416,003401,294,765135,399,00038,685,00033,746,944
12Oct 10, 2021 03:416,015399,812,044138,810,00035,624,00034,177,024