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:30Yuriy LyfenkoYuriy LyfenkoScore: 3,906Success
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:273,899136,072,964112,082,0001,000,0002,506,752
2Apr 11, 2026 23:273,899136,318,574112,078,0001,000,0002,392,064
3Apr 11, 2026 23:273,900137,218,513113,103,00002,396,160
4Apr 11, 2026 23:273,900136,684,004112,113,0001,001,0002,281,472
5Apr 11, 2026 23:273,902136,878,221111,164,0002,002,0002,281,472
6Apr 11, 2026 23:363,903144,264,602112,195,0001,001,0002,523,136
7Apr 11, 2026 23:273,904140,433,748111,224,0002,004,0002,396,160
8Apr 11, 2026 23:303,905136,110,212113,242,00002,281,472
9Apr 11, 2026 23:363,905136,003,275112,238,0001,002,0002,469,888
10Apr 11, 2026 23:303,906138,684,834113,286,00002,281,472
11Apr 11, 2026 23:273,906136,714,994111,261,0002,004,0002,281,472
12Apr 11, 2026 23:303,910137,807,201112,382,0001,003,0002,383,872
13Apr 11, 2026 23:273,933142,571,933112,057,0002,001,0002,273,280
14Apr 11, 2026 23:303,937137,401,543112,175,0002,003,0002,265,088
15Apr 11, 2026 23:273,940137,866,658112,244,0002,004,0002,277,376
16Apr 11, 2026 23:303,940136,348,255113,255,0001,002,0002,396,160
17Apr 11, 2026 23:303,946138,009,363113,418,0001,003,0002,281,472
18Apr 11, 2026 23:363,948137,770,229113,483,0001,004,0002,281,472