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 11, 2021 04:51Yuriy LyfenkoYuriy LyfenkoScore: 5,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 04:515,407433,234,808156,794,358027,439,104
2Oct 11, 2021 04:515,425482,011,081157,336,645027,443,200
3Oct 11, 2021 04:515,452451,309,900158,096,342027,443,200
4Oct 11, 2021 04:515,552359,311,145129,395,00031,608,00033,497,088
5Oct 11, 2021 04:515,552367,961,664122,406,00038,605,00034,152,448
6Oct 11, 2021 04:515,552364,230,649135,923,00025,093,00034,091,008
7Oct 11, 2021 04:515,556379,230,602136,019,00025,111,00034,086,912
8Oct 11, 2021 04:515,562361,939,382132,062,00029,235,00033,812,480
9Oct 11, 2021 04:515,568365,525,950128,786,00032,692,00033,906,688
10Oct 11, 2021 04:515,581356,413,983137,683,00024,173,00033,857,536
11Oct 11, 2021 04:515,590373,014,078137,898,00024,211,00034,189,312
12Oct 11, 2021 04:515,620378,410,817135,131,00027,851,00034,189,312