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 16, 2021 14:24Ilya AniskovetsIlya AniskovetsScore: 6,190Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 14:245,897739,730,567171,014,452027,398,144
2Oct 16, 2021 14:245,928496,346,830171,908,591027,455,488
3Oct 16, 2021 14:245,930502,490,033171,971,503027,340,800
4Oct 16, 2021 14:246,165367,615,693151,031,00027,740,00033,730,560
5Oct 16, 2021 14:246,180390,544,607153,161,00026,047,00033,751,040
6Oct 16, 2021 14:246,188384,238,410145,933,00033,525,00034,013,184
7Oct 16, 2021 14:246,190394,189,254150,090,00029,409,00033,980,416
8Oct 16, 2021 14:246,194383,861,878148,333,00031,281,00033,812,480
9Oct 16, 2021 14:246,195381,834,686146,893,00032,753,00034,271,232
10Oct 16, 2021 14:246,225395,071,188159,044,00021,492,00033,636,352
11Oct 16, 2021 14:246,234371,863,234146,390,00034,386,00034,017,280
12Oct 16, 2021 14:246,246393,557,765160,515,00020,606,00034,160,640