結果

問題 No.2575 Almost Increasing Sequence
ユーザー hotman78hotman78
提出日時 2023-10-28 14:15:11
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 14,962 bytes
コンパイル時間 2,296 ms
コンパイル使用メモリ 206,544 KB
実行使用メモリ 6,548 KB
スコア 0
最終ジャッジ日時 2023-12-02 23:31:23
合計ジャッジ時間 3,271 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

// #include"cpplib/util/template.hpp"
#include<bits/stdc++.h>
using namespace std;
#define output(t) {bool f=0;for(auto val:(t)){cout<<(f?" ":"")<<val;f=1;}cout<<endl;}
#define _overload4(_1,_2,_3,_4,name,...) name
#define __rep(i,a) repi(i,0,a,1)
#define _rep(i,a,b) repi(i,a,b,1)
#define repi(i,a,b,c) for(long long i=(long long)(a);i<(long long)(b);i+=c)
#define rep(...) _overload4(__VA_ARGS__,repi,_rep,__rep)(__VA_ARGS__)

string base64_encode(string b){
    const string table="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    string res;
    while(b.size()%6) b+='0';
    int n=b.size();
    for(int i=0;i<n;i+=6){
        int x=0;
        for(int j=0;j<6;j++){
            x<<=1;
            if(i+j<n) x|=b[i+j]-'0';
        }
        res+=table[x];
    }
    while(res.size()%4) res+='=';
    return res;
}

string base64_decode(const string&s){
    const string table="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    string res;
    int n=s.size();
    for(int i=0;i<n;i++){
        if(s[i]=='=')break;
        res+=bitset<6>(table.find(s[i])).to_string();
    }
    return res;
}

string s="AAAAAAAAAAAAAAAAAAAAAAAAAAQAAABQAAAD7QAAK3oAAcPwABH86AC23ewHTq3wECVNCRUwwFMhxQF7ByiMBBj8UVw0f2KOFIGg/TAXyAgwU/V0JxSYzC1pfDwJCwZUJnf9yhIc6mM5D4oUDqleFC70UOgBvNKQJt4ESRSU5GA7CgldG+VySht5OkMG5FdQJB+t6ifQXhs1Cd0kOERbEwCJKy8spyOCG8vVZB/wC3wq79qkA2AvQh5DY4sIdE37LYPYJALjcjk3yg7lNUtnowtBUUscj7qZBU5vghnGsGkxnjn0AT/IZQZINWEasDRpNFK1HxBoJOgia9xVNYFNDiS+jgQnCCAiD+2n7gAyLuAh7QaYBidC+zUeQcILS5wsAMmm2yvKdrMzx4mPGdvxnyBWcgYPsy8FOR1CAiQSmEkM6FOBBZXHeQVZOh8BKzbbFRlkazoUoCkKI65vMiQQ6DDgzWoptSyyOS3aaBvGO3oZnIY3LtsZTzaTMBwVkfECAhDx6Qy1ERUaDE7oOYDX3yp1auItlX9jDkSPtxTksjwMyxC6Mv7gAiaZ9OILBGWaAoKyITA/bzsZaNxnIWcfShnE3EAj5kf9Bk9wBDnS/awoMAGIDfUqpQPsQ/U4A+t5FDNMBy8d+zoTBv9NJBxzgxWCERYWuMCZJozsFAe1O6ckjO29F8o8nzdwaZkTx3y5II0BITFZQNMRN/NJEG2qpBYtC8UlHnlWJeDjASl4c4ATo2SQIWSKnx2sk6APZ9wLAce65AAsp7YaP4CDJd1ySRskVCEotsn+CZXBZx4SVcsXgImUAfXCmDgnhTE1Vre/CGFziihLgOoFZfw2DzMrWyEFCVcDn/0OJENuQTHGU+s1g/oVAnSrRjA5eZ8ekS5TL662ZxQayr41DKH8FK5JBQ5hQnY2JhrGLhW24BYvjKIu+rx7B3ZFySWUaQI5oXbdBUAXwx8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2b0eQoPRmhJC+iQzeABVM0gYtAH3Fp9BG410g6VSjQHWRdtzODpqEQAiXRINwdnR/gvgMEJiW2OIp8YQy94g4HD0/vHArpCBpW7xUkfTFkNiO7uhLE6Cguk32/DZ59iTirTgsErcMjIe8NgRFZaIs3mRwyKBbJ6BHkBvMLOHJCMfCEhy5yPhE7C8naIQBsFDIW5fE0CtnQLfvd+gha5bMkXIbxOZ7BCjIufXowty7uC4X15RyuLAg4s8ChJ/Q0+iqbDM4k0sSkFRnHdDXZiP0fCSuLIDvzByovk+43/WS2FOXXSBljRSc1Wl6XHZ3PuQpdKM0AHtFJH4/utzFhCmEFQSyhFQgFex9VIy0bnf1pAGly5wDxT0ktyAEPC/t6vidbMiETeaVmKS03KDgYRj8pZCXJN86mTTZbAzQ1RRylEfOe1AP7130XFC23DQzGdzhet4gpOG6PN6ooDxs8p7cwR006FociyTP5y0QPY6KLBWlAnA5/gmwSH+0cNAqw7BGBLQUgEheNMGUdCQ==";

int main(){
    // string s;
    // rep(i,v.size()){
    //     s+=bitset<32>(v[i]).to_string();
    // }
    // cout<<base64_encode(s)<<endl;
    auto t=base64_decode(s);
    while(32*2500<t.size())t.pop_back();
    bitset<32*2500>b(t);
    int n=2500;
    vector<int> v(n);
    for(int i=n-1;i>=0;--i){
        for(int j=31;j>=0;--j){
            v[i]<<=1;
            v[i]|=b[i*32+j];
        }
    }
    cout<<2500<<endl;
    reverse(v.begin(),v.end());
    output(v);
}
0