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 listAug 23, 2021 18:26Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2021 18:2800000Error: No answer to stdout. Died or killed?
2Aug 23, 2021 18:2800000Error: No answer to stdout. Died or killed?
3Aug 23, 2021 18:357,244976,675,106210,087,443027,459,584
4Aug 23, 2021 18:277,2451,003,128,383210,090,756027,418,624
5Aug 23, 2021 18:267,247980,527,232210,159,632027,455,488
6Aug 23, 2021 18:297,247985,725,970210,172,137027,459,584
7Aug 23, 2021 18:277,266979,051,444210,726,190027,455,488
8Aug 23, 2021 18:297,271983,357,246210,861,403027,463,680
9Aug 23, 2021 18:357,2711,027,253,852210,868,698027,459,584
10Aug 23, 2021 18:267,272987,907,838210,878,022027,443,200
11Aug 23, 2021 18:277,2831,035,137,357211,207,588027,471,872
12Aug 23, 2021 18:297,289989,837,244211,375,257027,422,720
13Aug 23, 2021 18:267,301998,067,950211,742,940027,435,008
14Aug 23, 2021 18:357,3091,015,149,019211,951,683027,455,488