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 8, 2025 21:22Aniruddha DebAniruddha DebScore: 7,771Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 8, 2025 21:227,768243,265,293224,275,0001,001,0002,281,472
2Apr 8, 2025 21:227,768255,737,108225,281,00002,281,472
3Apr 8, 2025 21:227,769254,445,201225,304,00002,281,472
4Apr 8, 2025 21:227,769253,083,365224,306,0001,001,0002,428,928
5Apr 8, 2025 21:227,771247,572,585225,365,00002,510,848
6Apr 8, 2025 21:227,775247,875,228225,462,00002,281,472
7Apr 8, 2025 21:227,782257,920,829224,688,000998,0002,531,328
8Apr 8, 2025 21:227,785255,589,512224,758,000998,0002,281,472
9Apr 8, 2025 21:227,786251,443,372224,787,000999,0002,510,848