В общем, была задача на оптимизацию плана работ: есть набор заказов, и в каждом N тасков. Таски могут зависеть друг от друга или нет, имеют длительность и тип. Ещё есть M работников, каждый из которых может выполнять таски только определённых типов, причём, у каждого своя скорость.
Если все таски в заказе выполнены, фирма получает сколько-то денег. У заказа есть дедлайн, за просрочку штраф (за каждый день просрочки), который вычитается из цены заказа. И ещё фирма тратит деньги за каждый день своей работы независимо от того, как загружены её сотрудники (то есть просто платит зарплаты по сути). Ещё важен учёт праздников и выходных.
Нужно заработать на определённом наборе заказов и работников как можно больше денег. Полный текст задачи и код программы проверки есть в репозитории. Эта задача является изменённым заказом, который мы с напарником решали в реальной жизни: оптимизация работы печатных станков для типографии. Правда, тогда и мы справились так себе, и заказчик в итоге сначала захотел всё вручную сам делать, а потом и вовсе похоронил проект при смене директора.
!!! Не читайте дальше, если хотите сначала попробовать решить самостоятельно, потому что я сейчас опишу эффективные подходы и результаты.
________________________________________
Так вот. Мы с другим экспертом Андреем сразу сели и написали разные варианты, чтобы задать шкалу, по которой будем оценивать решения команд. За пару часов я собрал примитивный жадный алгоритм, который сортировал заказы по прибыльности и укладывал в сетку кое-как, это дало нам нижнюю оценку. Мой алгоритм заработал ~75 млн виртуальных рублей, мы решили для оценки поставить нижней границей 40 млн. То есть всё, что ещё ниже, оценивалось в ноль баллов за качество оптимизации.
Затем Андрей закрылся дома на три дня и вышел на свет со сложным жадным алгоритмом, который очень хитро сортировал заказы и очень хитро укладывал их в сетку, попутно выбирая разные способы этой укладки в зависимости от конкретного заказа. Это позволило заработать ~275 млн рублей. Мы сделали верхней границей для оценки 280 млн.
К сожалению, в итоге только две команды из десяти прошли нижнюю границу, заработав, соответственно, ~91 и ~105 млн. К верхней границе не приблизился никто. И у четырёх команд алгоритм вообще не смог уложить без нарушений задачи в сетку (то есть, например, произвольно менял длительности, накладывал задачи друг на друга, давал одному работнику две задачи в один момент и так далее). Важной ошибкой команд, на мой взгляд, являлся тот факт, что никто не воспользовался возможностью запустить алгоритм на несколько минут и дать ему поработать. По условиям задания, можно было тянуть до 5 минут на одну оптимизацию, но по факту решения команд отрабатывали за единицы и десятки секунд.
На самом конкурсе, пока команды работали, я решил попробовать сделать быстрое (по времени написания) но эффективное решение. Сначала попробовал жадную сортировку + доведение до лучшего варианта методом имитации отжига. В качестве нового состояния я просто менял местами заказы целиком. Этот вариант работал пару минут и дал мне около ~200 млн дохода. К слову, команда-лидер использовала такой же подход, просто не докрутила число итераций и температуру.
Ну и потом я взял готовую либу по реализации классической генетики с особями и скрещиванием. Особью был массив с приоритетами заказов (которые конечно же нужно было аккуратно уложить чистым алгоритмом). Тип скрещивания: scattered. Всего 15 поколений по 20 особей, и это за минуту-полторы давало ~230-240 млн. Считаю, что для конкурса это самый лучший выбор: пишется одним человеком за день и даёт почти максимум, при этом легко настраивается на нужную длительность работы, легко параллелится.
Ну а потом уже дома я посидел и накодил свой вариант сложного жадного с плавающим окном перебора отсортированных заказов и плавающей же укладкой по работникам. Такая штука за две минуты зарабатывает ~281 млн. Но за три дня в условиях стресса я бы такое не сделал, скорее всего.
#dev
🪙Storm Trade released Degen Mode
🤬
Degen Mode — an ultra-leverage trading environment built for seasoned traders who can handle sharp price swings and rigorous risk controls.
At a glance:
Leverage: ×500 (fixed)
Pairs: TON, BTC, ETH, SOL
Trading fee: 0.02 % per order
Rollover: 0.005 % per hour (fixed)
P&L cap: ±300 % of margin
🫶 Advantages:
Capital efficiency. A 100 USDT deposit lets you command a 50 000 USDT position — handy if you’d rather not park large balances on the exchange.
Low friction. With flat rollover and rock-bottom fees, you can trade actively without overspending on funding costs.
Defined risk ceiling. Positions auto-close at ±300 % P&L, giving clear boundaries for both profit and loss.
😎Who might use it:
Scalpers & quants — hunting sub-percent moves with tight stops and automation.
Spot-portfolio hedgers — opening short hedges at ×500 to cover exposure around known volatility events (CPI, FOMC releases, etc.).
Strategy testers on small capital — leverage magnifies outcomes, so hypotheses can be validated quickly while risking only the posted margin.
⚡️Key considerations:
Extreme sensitivity: a 0.3 % move in the underlying equals ±150 % on your P&L.
Discipline required: without pre-set stops, liquidation risk is high.
Time cost: rollover is modest but compounds if positions stay open for long.
If your playbook values high capital efficiency and rapid-fire results, Degen Mode on Storm Trade could be a powerful addition. Otherwise, more conservative instruments may suit you better.
Dive into the full documentation here
✅Enable Degen Mode
All my referrals will receive 🪙 100 $STORM tokens in their wallet at the end of the month for any trade of $10 or more. And if you want to gain more experience and bonuses, join our trading club ⭐️DEXTradingHub and complete the tasks ✅
#DEX#DeFi#Leverage#Web3#CryptoNews
📰 Araghchi’s Rubble Strategy: Bury the Material, Keep the Option
Iran’s message now is basically: the uranium lives, the war lives, the leverage lives — only the diplomacy is dead.
Iranian officials say much of their enriched uranium is literally “under the rubble” of bombed nuclear sites, not removed or destroyed, and could in principle be recovered later under IAEA supervision.
That turns the ruins into a form of insurance: the program is physically disrupted, but the key asset still exists in place, giving Tehran the option to resume or bargain from that baseline whenever it chooses.
At the same time, Araghchi’s line is that Iran sees no reason to negotiate with Washington now and is not asking for talks or a ceasefire, even as the IAEA keeps warning that the nuclear material “is still there, in large quantities.”
The combination is deliberate: the stockpile survives in a kind of limbo while the political channel is switched off, signaling that bombs can pause activity but have not erased Iran’s long‑term nuclear card.
On the maritime front, Tehran is doing something similar with the Strait of Hormuz. Iranian officials admit they are discussing safe passage for some countries’ ships, and Reuters and other outlets report that India has already secured exceptions for a small number of its vessels, with New Delhi publicly seeking broader safe passage for stranded tankers.
Turkey and others are also cited in coverage as having limited clearances, which means Hormuz isn’t closed in principle — it is being turned into a selective corridor where access depends on direct dealings with Iran.
So everything now comes with an asterisk. The enriched uranium is buried, not gone. Negotiations are frozen, not formally renounced. Hormuz is heavily restricted, not sealed shut, with carve‑outs for those willing to talk to Tehran.
That layered ambiguity is not an accident; it is policy — a way for Iran to show it can absorb strikes, keep pressure on the global system, and still retain bargaining power for the moment when everyone inevitably has to sit down at a table again.
#iran#nuclear#araghchi#hormuz#india#war#leverage
📱American Оbserver - Stay up to date on all important events
🇺🇸
🚀 Crypto Investor Huang Licheng Closes HYPE Position, Continues Ethereum Leverage
Crypto investor Huang Licheng has recently closed his HYPE long position, according to Odaily. He continues to increase his leverage on Ethereum, holding 12,300 ETH with a position value of $26.611 million and a liquidation price of $2,081.
#Crypto#Ethereum#HYPE#Leverage#Investor#ETH#Cryptocurrency
🚀 Whale Opens High-Leverage Bitcoin Short Position
A large cryptocurrency holder, identified by the address starting with 0x004, has opened a Bitcoin short position with 33x leverage. According to ChainCatcher, the average price for this position is $70,745, involving 200 BTC. The position currently shows a floating loss of 10%. Earlier today, the same address closed a previous Bitcoin short position at break-even and has now re-entered the market. This marks the fifth time this month that the address has opened a short position.
#Whale#Bitcoin#ShortPosition#Leverage#Cryptocurrency#BTC#ChainCatcher#FloatingLoss#Market#CryptoTrading
🚀 Loracle Expands Leveraged Positions in CL and TON
Loracle has increased its short position in CL to $19.76 million using 7x leverage, while also expanding its long position in TON with 5x leverage. According to Foresight News, Loracle holds long positions in BTC, NEAR, LIT, TAO, PAXG, and ENA, with a total value exceeding $47.17 million.
#Loracle#CL#TON#BTC#NEAR#LIT#TAO#PAXG#ENA#Leverage#CryptoTrading
🚀 BTC Decline Affects Whale's Investment Strategy
On April 13, BTC experienced a slight decline, impacting the HYPE token, which fell before recovering above $41. According to BlockBeats, a major investor known for profiting from a long BTC exchange rate strategy is facing pressure, with a capital withdrawal of $1.9 million this week.
The investor currently holds a BTC long position with 40x leverage, valued at $30.06 million at an average price of $70,557, and a HYPE short position with 5x leverage, valued at $23.03 million at an average price of $38.93. The positions were established during a previous HYPE surge, with the full setup completed by March 20, totaling approximately $53 million.
Since the establishment of these positions, the investor has incurred a net loss of about $1.32 million, with the portfolio yet to achieve positive returns.
#BTC#HYPE#WhaleInvestment#Leverage#CapitalWithdrawal#CryptoStrategy#BTCDecline#InvestmentLoss#CryptoMarket
🚀 Stablecoin-Like Tokens Backed by Strategy's Shares Surpass $100 Million
Since January, at least three issuers have introduced stablecoin-like tokens primarily backed by Strategy's Stretch perpetual preferred shares, collectively managing over $100 million. According to NS3.AI, these products expand Michael Saylor's borrow-to-buy-Bitcoin strategy into an additional layer of leverage, which remains vulnerable if Bitcoin's value declines.
#stablecoin#tokens#Strategy#Stretch#preferredshares#MichaelSaylor#borrowtobuy#Bitcoin#leverage#NS3AI#BTC
🚀 Cryptocurrency Whale Faces Losses Amid Market Fluctuations
On April 10, according to BlockBeats, monitoring by Hyperinsight revealed that a major cryptocurrency investor, known for leveraging market downturns, has faced challenges with their trading strategy. This investor has historically profited by betting on the 'BTC/altcoin' exchange rate during market declines. However, with Bitcoin stabilizing and HYPE gaining strength, surpassing $40 with a daily increase of over 5%, both sides of the investor's strategy are under pressure, resulting in a daily capital withdrawal of $900,000.
Currently, the investor holds a long position in Bitcoin with a 40x leverage, valued at $30.4 million, and a short position in HYPE with a 5x leverage, valued at $23.2 million. The investor began positioning during HYPE's previous surge and completed their setup by March 20, with a total scale of approximately $53 million. Since then, they have incurred a net loss of about $300,000, without achieving positive returns.
Previously, this investor employed a similar strategy, investing around $50 million to go long on Bitcoin while shorting eight other cryptocurrencies, including ETH, XRP, and ADA. This approach proved successful, maintaining a total cycle profit of approximately $37.1 million.
#Cryptocurrency#Whale#MarketFluctuations#Bitcoin#HYPE#Leverage#CapitalWithdrawal#BTC#Altcoin#InvestorLosses#CryptoStrategy#BlockBeats#Hyperinsight#XRP
🚀 Bitcoin Futures Open Interest Hits 14-Month Low Amid Institutional Strategy Shift
On April 11, the open interest in Chicago Mercantile Exchange (CME) Bitcoin futures fell to $8.41 billion, marking its lowest level in 14 months. According to BlockBeats, Glassnode analysts attribute this decline primarily to the unwinding of basis trades. Previously, this strategy involved establishing long positions through spot ETFs and hedging with short futures to earn the spread. However, the annualized returns have recently dropped from 15%-20% to around 5%, prompting institutions to take profits.
Additionally, the daily trading volume of CME Bitcoin futures has decreased to below $3 billion. Analysts suggest that as institutional demand shifts towards directly holding spot assets, the leverage in the futures market is significantly decreasing.
#BitcoinFutures#OpenInterest#CME#BasisTrades#InstitutionalStrategy#SpotETFs#FuturesMarket#Leverage#TradingVolume#BlockBeats#Glassnode#CryptoMarket#BTC