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 12, 2026 00:55Yuriy LyfenkoYuriy LyfenkoScore: 3,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2026 00:553,576129,217,555101,721,0001,994,0002,392,064
2Apr 12, 2026 00:553,579133,582,108102,799,000998,0002,519,040
3Apr 12, 2026 00:553,580131,326,160102,834,000998,0002,387,968
4Apr 12, 2026 00:553,580131,620,977101,838,0001,996,0002,265,088
5Apr 12, 2026 00:553,581131,577,656102,845,000998,0002,265,088
6Apr 12, 2026 00:553,581132,182,715103,845,00002,523,136
7Apr 12, 2026 00:553,581131,565,097102,853,000998,0002,387,968
8Apr 12, 2026 00:553,581130,130,834103,855,00002,265,088
9Apr 12, 2026 00:553,581131,282,170102,848,000998,0002,510,848
10Apr 12, 2026 00:553,581129,333,338102,858,000998,0002,265,088
11Apr 12, 2026 00:553,581130,710,768102,849,000998,0002,265,088
12Apr 12, 2026 00:553,581124,409,237102,847,000998,0002,265,088
13Apr 12, 2026 00:553,581132,614,753101,841,0001,996,0002,523,136
14Apr 12, 2026 00:553,581135,900,906101,842,0001,996,0002,265,088
15Apr 12, 2026 00:553,582134,172,718101,891,0001,997,0002,392,064
16Apr 12, 2026 00:553,582128,360,719102,879,000998,0002,523,136
17Apr 12, 2026 00:553,583130,224,060101,906,0001,998,0002,387,968
18Apr 12, 2026 00:553,583137,108,483101,912,0001,998,0002,523,136
19Apr 12, 2026 00:553,583130,623,283101,902,0001,998,0002,265,088
20Apr 12, 2026 00:553,584133,757,209102,927,000999,0002,265,088
21Apr 12, 2026 00:553,584136,117,196101,928,0001,998,0002,265,088
22Apr 12, 2026 00:553,585134,191,874102,977,000999,0002,396,160
23Apr 12, 2026 00:553,585133,858,364102,956,000999,0002,265,088
24Apr 12, 2026 00:553,587128,770,201102,029,0002,000,0002,523,136
25Apr 12, 2026 00:553,587134,838,729103,023,0001,000,0002,523,136
26Apr 12, 2026 00:553,587127,314,123103,024,0001,000,0002,396,160
27Apr 12, 2026 00:553,588128,185,322103,040,0001,000,0002,392,064