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:47Yuriy LyfenkoYuriy LyfenkoScore: 5,969Success
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:475,681389,613,807164,743,211027,455,488
2Oct 10, 2021 03:475,691379,536,758165,051,565027,463,680
3Oct 10, 2021 03:475,725443,124,942166,031,302027,455,488
4Oct 10, 2021 03:475,945377,583,860135,759,00036,633,00033,779,712
5Oct 10, 2021 03:475,961372,131,070136,814,00036,059,00033,832,960
6Oct 10, 2021 03:475,964394,818,774141,312,00031,653,00033,898,496
7Oct 10, 2021 03:475,969383,304,379137,552,00035,547,00034,226,176
8Oct 10, 2021 03:475,971393,904,960137,858,00035,305,00033,366,016
9Oct 10, 2021 03:475,976393,590,608138,645,00034,661,00034,078,720
10Oct 10, 2021 03:475,976398,480,836137,674,00035,633,00034,439,168
11Oct 10, 2021 03:475,988392,167,690142,437,00031,219,00033,898,496
12Oct 10, 2021 03:476,002398,153,862139,527,00034,536,00034,242,560