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 06:18Yuriy LyfenkoYuriy LyfenkoScore: 5,363Success
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 06:185,135440,717,514148,911,789027,435,008
2Oct 11, 2021 06:185,158462,939,330149,583,235027,443,200
3Oct 11, 2021 06:185,164513,115,791149,767,083027,443,200
4Oct 11, 2021 06:185,337345,977,975126,453,00028,325,00034,021,376
5Oct 11, 2021 06:185,338340,445,362124,643,00030,155,00033,943,552
6Oct 11, 2021 06:185,361359,900,513125,380,00030,091,00034,017,280
7Oct 11, 2021 06:185,363370,567,120124,621,00030,906,00033,796,096
8Oct 11, 2021 06:185,367367,908,121126,138,00029,500,00033,837,056
9Oct 11, 2021 06:185,370366,934,750124,575,00031,143,00033,820,672
10Oct 11, 2021 06:185,378355,977,966121,850,00034,118,00033,890,304
11Oct 11, 2021 06:185,383370,607,942128,386,00027,731,00033,632,256
12Oct 11, 2021 06:185,406364,272,153127,061,00029,715,00034,004,992