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 04:46Yuriy LyfenkoYuriy LyfenkoScore: 5,745Success
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 04:465,643441,489,447163,649,605027,443,200
2Oct 11, 2021 04:465,676480,024,440164,596,859027,455,488
3Oct 11, 2021 04:465,676436,234,061164,608,356027,443,200
4Oct 11, 2021 04:465,724376,288,464140,949,00025,057,00033,964,032
5Oct 11, 2021 04:465,733375,302,178132,808,00033,448,00033,636,352
6Oct 11, 2021 04:465,734378,608,947136,064,00030,236,00033,640,448
7Oct 11, 2021 04:465,745378,837,267136,312,00030,291,00035,065,856
8Oct 11, 2021 04:465,749383,579,098137,250,00029,483,00033,640,448
9Oct 11, 2021 04:465,750358,303,777137,935,00028,822,00033,906,688
10Oct 11, 2021 04:465,755382,673,711138,915,00027,990,00033,583,104
11Oct 11, 2021 04:465,762359,775,514137,371,00029,729,00034,373,632
12Oct 11, 2021 04:465,764365,015,094136,583,00030,578,00033,808,384