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:50Yuriy LyfenkoYuriy LyfenkoScore: 5,458Success
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:505,182435,910,020150,282,410027,439,104
2Oct 11, 2021 04:505,227423,555,560151,594,264027,439,104
3Oct 11, 2021 04:505,254458,826,108152,373,968027,439,104
4Oct 11, 2021 04:505,456369,212,806128,987,00029,223,00034,320,384
5Oct 11, 2021 04:505,456371,401,750127,995,00030,235,00033,751,040
6Oct 11, 2021 04:505,457348,163,773136,087,00022,153,00033,603,584
7Oct 11, 2021 04:505,458344,265,023128,853,00029,423,00033,300,480
8Oct 11, 2021 04:505,470341,908,686132,715,00025,920,00033,705,984
9Oct 11, 2021 04:505,473345,433,792120,204,00038,503,00034,254,848
10Oct 11, 2021 04:505,478363,587,982133,788,00025,085,00033,796,096
11Oct 11, 2021 04:505,498366,177,325133,226,00026,225,00034,189,312
12Oct 11, 2021 04:505,504372,856,999131,808,00027,803,00033,890,304