Dmaxiya

[蓝桥杯 2026 省 A] 均衡数 参考代码

Apr 11th, 2026
142
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.20 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define endl '\n'
  5.  
  6. typedef long long LL;
  7. const int maxn = 1000000 + 100;
  8.  
  9. // 找到小于等于 2026202620262026 的最大平衡数
  10. // 形式:1111100000,0 与 1 的个数都是 25
  11. void outputMaybe1(string s) {
  12.     string ss = s.substr(1, s.length());
  13.     sort(ss.begin(), ss.end());
  14.     reverse(ss.begin(), ss.end());
  15.     cout << ss << endl;
  16.     // cout << "1125899873288192" << endl;
  17. }
  18.  
  19. // 找到大于等于 2026202620262026 的最小平衡数
  20. // 形式:1000001111,0 与 1 的个数都是 26
  21. void outputMaybe2(string s) {
  22.     string ss = "0" + s;
  23.     sort(ss.begin(), ss.end());
  24.     ss = "1" + ss.substr(0, ss.length() - 1);
  25.     cout << ss << endl;
  26.     // cout << "2251799847239679" << endl;
  27. }
  28.  
  29. int main() {
  30.     ios::sync_with_stdio(false);
  31.  
  32.     // 查询 s 的 0 1 个数
  33.     // string s = "111001100101101001000001111011011000111011010001010";
  34.     // int cnt[2] = {0, 0};
  35.     // for (char ch : s) {
  36.     //     ++cnt[ch - '0'];
  37.     // }
  38.     // for (int i = 0; i < 2; ++i) {
  39.     //     cout << cnt[i] << endl;
  40.     // }
  41.     // outputMaybe1(s);
  42.     // outputMaybe2(s);
  43.     cout << "2251799847239679" << endl;
  44.  
  45.     return 0;
  46. }
  47.  
Advertisement
Comments
  • Sarsalon
    187 days
    # CSS 0.84 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Swapzone — instant swap).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Ernikiq
    20 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • User was banned
Add Comment
Please, Sign In to add comment