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:50Ilya AniskovetsIlya AniskovetsScore: 5,543Success
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:505,301485,844,726153,723,410027,447,296
2Oct 11, 2021 05:505,323478,957,006154,373,563027,455,488
3Oct 11, 2021 05:505,343447,771,657154,961,339027,439,104
4Oct 11, 2021 05:505,510350,922,856128,824,00030,957,00033,398,784
5Oct 11, 2021 05:505,524354,531,410132,280,00027,903,00033,718,272
6Oct 11, 2021 05:505,542356,841,853131,407,00029,314,00034,127,872
7Oct 11, 2021 05:505,543369,141,773124,912,00035,827,00033,619,968
8Oct 11, 2021 05:505,559371,324,186131,615,00029,587,00034,226,176
9Oct 11, 2021 05:505,559374,524,367132,469,00028,752,00034,242,560
10Oct 11, 2021 05:505,562360,620,562130,052,00031,252,00034,144,256
11Oct 11, 2021 05:505,573380,953,108121,925,00039,696,00034,107,392
12Oct 11, 2021 05:505,579378,177,526128,048,00033,749,00034,119,680