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 listApr 11, 2026 23:04Yuriy LyfenkoYuriy LyfenkoScore: 4,103Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2026 23:034,099145,729,186116,865,0001,997,0002,383,872
2Apr 11, 2026 23:034,100147,258,984116,907,0001,998,0002,281,472
3Apr 11, 2026 23:034,101142,890,929116,932,0001,998,0002,281,472
4Apr 11, 2026 23:094,101138,345,129117,927,000999,0002,281,472
5Apr 11, 2026 23:044,102140,542,093116,959,0001,999,0002,400,256
6Apr 11, 2026 23:094,102150,577,016116,967,0001,999,0002,273,280
7Apr 11, 2026 23:094,102141,032,576116,965,0001,999,0002,392,064
8Apr 11, 2026 23:094,102143,392,964116,961,0001,999,0002,281,472
9Apr 11, 2026 23:034,102142,650,111117,971,000999,0002,281,472
10Apr 11, 2026 23:034,103140,952,505116,996,0001,999,0002,469,888
11Apr 11, 2026 23:034,103143,731,827117,994,000999,0002,392,064
12Apr 11, 2026 23:094,103139,483,875117,994,000999,0002,281,472
13Apr 11, 2026 23:094,103147,831,488117,999,000999,0002,281,472
14Apr 11, 2026 23:094,104144,640,864117,008,0002,000,0002,387,968
15Apr 11, 2026 23:034,104142,547,891118,026,0001,000,0002,265,088
16Apr 11, 2026 23:094,105140,753,985117,041,0002,000,0002,281,472
17Apr 11, 2026 23:034,105148,741,996118,049,0001,000,0002,396,160
18Apr 11, 2026 23:044,106141,505,660117,082,0002,001,0002,281,472
19Apr 11, 2026 23:094,116142,272,793118,351,0001,002,0002,265,088
20Apr 11, 2026 23:044,128152,096,108118,710,000997,0002,392,064
21Apr 11, 2026 23:034,148142,753,307120,298,00002,281,472