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 05:54Yuriy LyfenkoYuriy LyfenkoScore: 5,442Success
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 05:545,173448,111,144150,018,623027,439,104
2Oct 11, 2021 05:545,251496,099,382152,281,990027,430,912
3Oct 11, 2021 05:545,253508,873,133152,341,352027,439,104
4Oct 11, 2021 05:545,429360,816,064128,171,00029,267,00033,226,752
5Oct 11, 2021 05:545,438364,803,453134,562,00023,127,00033,796,096
6Oct 11, 2021 05:545,442365,601,074131,684,00026,127,00033,755,136
7Oct 11, 2021 05:545,442335,029,643128,480,00029,338,00034,185,216
8Oct 11, 2021 05:545,443348,916,638121,499,00036,354,00033,624,064
9Oct 11, 2021 05:545,450341,486,527121,640,00036,396,00033,792,000
10Oct 11, 2021 05:545,455363,609,056129,430,00028,762,00034,054,144
11Oct 11, 2021 05:545,535394,551,939122,577,00037,940,00037,302,272
12Oct 11, 2021 05:545,562399,016,888128,231,00033,059,00036,913,152