QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#254107#1294. Equality ControlFyindWA 96ms132848kbC++204.2kb2023-11-18 00:45:522023-11-18 00:45:52

Judging History

你现在查看的是最新测评结果

  • [2023-11-18 00:45:52]
  • 评测
  • 测评结果:WA
  • 用时:96ms
  • 内存:132848kb
  • [2023-11-18 00:45:52]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
typedef long long ll;
typedef long double ld;
#define sz(x) ((int)x.size())
typedef pair<int,int> pii;

#define _ << " " <<
struct Node {
    vector<int> c;
    vector<pii> sh;
};
int tot;
Node t[maxn];

struct SN {
    string op="";
    deque<int> v;
    int siz=0;
};
SN zero;

SN parse(string &x) {
    list<SN> st; 

    auto parseList = [&]() {
        stringstream ss(st.back().op);
        char c; int x; ss >> c;
        st.back().v.push_back(0);
        while (!ss.eof()) {
            ss >> x;
            st.back().v.push_back(x);
            st.back().siz++;
            ss >> c;
        }
    };

    auto parseOp = [&]() {
        string name;
        auto it = --st.end();
        auto it2 = it; --it2;
        auto it3 = it2;
        if (it2->op[0] == '[') {
            --it3;
            name = it3->op;
        } else name = it2->op;

        if (name == "concat") {
            // it2, it1
            if (it2->v.size() < it->v.size()) {
                while (!it2->v.empty()) {
                    it->v.push_front(it2->v.back());
                    it2->v.pop_back();
                }
                it->siz += it2->siz;
                st.erase(it2);
            } else {
                while (!it->v.empty()) {
                    it2->v.push_back(it->v.front());
                    it->v.pop_front();
                }
                it2->siz += it->siz;
                st.erase(it);
            }
            st.erase(--(--st.end()));
        } else if (name == "shuffle") {
            st.erase(it2);
            st.back().v.front() = -st.back().siz;
        } else if (name == "sorted") {
            st.erase(it2);
            st.back().v.front() = INT_MAX - st.back().siz;
        }
    };

    st.push_back(zero);        
    int open = 0;
    for (int i = 0;i < sz(x); ++i) {
        
        if (x[i] == ']') {
            parseList();
            open = 0;
        } else if (x[i] == ')') {
            parseOp();
        } else if (x[i] == '('){
            st.push_back(zero);
        } else if (x[i] == '['){
            st.back().op.push_back(x[i]);
            open = 1;
        } else if (x[i] == ',' && !open) {
            st.push_back(zero);
        } else {
            st.back().op += x[i];
        }
    }
    // for (auto x : st.back().v) cout << x << endl;
    return st.back();
}




bool cmp(SN a, SN b) {
    auto gen = [&](SN &a,vector<pii> &sha, vector<int> &ans) {
        
        int i = 0;
        for (;i < sz(a.v); ++i) {
            int x = a.v[i];
            if (x < 0) {
                int siz = -x;
                int pre = -1; int ok = 1;
                for (int j = 0;j < siz; ++i) {
                    if (a.v[i] > 0 && a.v[i] <= 1e9) {
                        ans.push_back(a.v[i]);
                        j++;
                        if (pre == -1) pre = a.v[i];
                        else if (pre != a.v[i]) ok = 0;
                    }
                }
                if (!ok) {
                    sort(ans.end()-siz,ans.end());
                    sha.push_back({sz(ans)-siz, ans.size()});
                }
            } else if (x > 1e9) {
                int siz = INT_MAX - x;
                for (int j = 0;j < siz; ++i) {
                    if (a.v[i] > 0 && a.v[i] <= 1e9) {
                        ans.push_back(a.v[i]);
                        j++;
                    }
                }
                sort(ans.end()-siz, ans.end());
            } else if (x > 0){
                ans.push_back(x);
            }
        }
    };
    vector<pii> sa, sb;
    vector<int> ansa, ansb;
    gen(a,sa, ansa);
    gen(b,sb, ansb);
    sort(sa.begin(), sa.end());
    sort(sb.begin(),sb.end());
    return sa == sb && ansa == ansb;
}

int main() {
    #ifdef LLOCAL
    freopen("a.in", "r", stdin);
    #endif
    ios_base::sync_with_stdio(0); cin.tie(0);
    string a, b; cin >> a >> b;
    auto ta = parse(a);
    auto tb = parse(b);
    if (cmp(ta,tb)) {
        cout <<"equal" << '\n';
    } else {
        cout << "not equal" << '\n';
    }
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 8532kb

input:

sorted([100,99])
[100,99]

output:

not equal

result:

ok single line: 'not equal'

Test #2:

score: 0
Accepted
time: 9ms
memory: 8752kb

input:

concat(concat(concat(concat(concat(shuffle([8254,5182]),concat(concat([3315],shuffle([6482,2407])),concat([3784],[7750]))),[5375,131,3163,3723,8518]),concat(concat(concat(shuffle([8959,3233,9777,1232]),concat(concat([3838],[5920]),concat([1184],shuffle([2034,6261,7379,2266,9127,6950,5741])))),[3050]...

output:

not equal

result:

ok single line: 'not equal'

Test #3:

score: 0
Accepted
time: 2ms
memory: 8240kb

input:

concat([908343,225257],concat([655775,182386,87829,448344],[947476,877175,818928,621687]))
concat([908343,225257,655775,182385],concat([87829,448345],[947476,877175,818928,621687]))

output:

not equal

result:

ok single line: 'not equal'

Test #4:

score: 0
Accepted
time: 2ms
memory: 8536kb

input:

concat(concat([94912,69780],[424582,392292,486324]),concat(concat(concat(concat([247951,75666,677977],[215906,167644,135405]),concat([814116,550601],concat([901479,985210],[28105,270616,255829]))),concat(concat([569437,649640],concat([281626,939656],[987060,269413,155848])),concat(concat([249742,626...

output:

not equal

result:

ok single line: 'not equal'

Test #5:

score: 0
Accepted
time: 1ms
memory: 8252kb

input:

concat(concat(concat([922379,476070],concat(concat([315410,476729,540590],[556639,73661,652252]),concat([338704,919470,740250],[172699,257489,893514]))),concat([413930,107863],concat([978894,47571],concat([497594,370537,499878],concat(concat([146624,748528,622848],[1575,29409,291670]),concat(concat(...

output:

equal

result:

ok single line: 'equal'

Test #6:

score: 0
Accepted
time: 2ms
memory: 8404kb

input:

concat(concat(concat(concat(concat([179688,283590],concat([908649,8053],concat([526442,518453],[543916,359201,273765]))),concat(concat([187273,252097,862202,619925],concat([885812,19337,102809],[479628,328955,174259])),concat(concat([310303,702921,137859],[909923,229256,29748]),concat([276494,186268...

output:

not equal

result:

ok single line: 'not equal'

Test #7:

score: 0
Accepted
time: 2ms
memory: 8384kb

input:

concat(concat(concat(concat([263362,562526,889508,55758],[124266,356296,662685,484630]),concat(concat(concat(concat([462468,172858,106505],[388420,325703,703986]),concat([751266,230723],[112856,683192,589997,589179])),concat(concat([619823,88799],concat([895544,357238,501106],concat([923477,278671],...

output:

equal

result:

ok single line: 'equal'

Test #8:

score: 0
Accepted
time: 1ms
memory: 8308kb

input:

shuffle([1,1,1,1])
sorted([1,1,1,1])

output:

equal

result:

ok single line: 'equal'

Test #9:

score: 0
Accepted
time: 0ms
memory: 8488kb

input:

shuffle([1,1,1,1,1,1,1,1,1,1,1])
[1,1,1,1,1,1,1,1,1,1,1]

output:

equal

result:

ok single line: 'equal'

Test #10:

score: 0
Accepted
time: 7ms
memory: 16520kb

input:

sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted...

output:

not equal

result:

ok single line: 'not equal'

Test #11:

score: 0
Accepted
time: 47ms
memory: 70004kb

input:

sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted...

output:

equal

result:

ok single line: 'equal'

Test #12:

score: 0
Accepted
time: 0ms
memory: 8200kb

input:

concat(shuffle([1,2,3]),concat(shuffle([3]),shuffle([1,2])))
concat(shuffle([2,3]),concat(shuffle([1]),shuffle([1,2,3])))

output:

not equal

result:

ok single line: 'not equal'

Test #13:

score: 0
Accepted
time: 2ms
memory: 8260kb

input:

concat(shuffle([1,2,3]),concat(shuffle([1]),shuffle([2,3])))
concat(shuffle([1,2]),concat(shuffle([3]),shuffle([1,2,3])))

output:

not equal

result:

ok single line: 'not equal'

Test #14:

score: 0
Accepted
time: 2ms
memory: 8312kb

input:

concat([1,1],[1])
concat([1],[1,1])

output:

equal

result:

ok single line: 'equal'

Test #15:

score: 0
Accepted
time: 87ms
memory: 102296kb

input:

concat(concat([2],concat(concat([8],concat(concat([1],concat(concat([8],concat(concat([6],concat(concat([8],concat(concat([2],concat(concat([4],concat(concat([7],concat(concat([2],concat(concat([6],concat(concat([5],concat(concat([6],concat(concat([8],concat(concat([6],concat(concat([5],concat(conca...

output:

equal

result:

ok single line: 'equal'

Test #16:

score: 0
Accepted
time: 2ms
memory: 8352kb

input:

concat(shuffle([1,2]),shuffle([3,4]))
shuffle([1,2,3,4])

output:

not equal

result:

ok single line: 'not equal'

Test #17:

score: 0
Accepted
time: 0ms
memory: 8300kb

input:

concat(shuffle([3,4]),shuffle([1,2]))
shuffle([1,2,3,4])

output:

not equal

result:

ok single line: 'not equal'

Test #18:

score: 0
Accepted
time: 2ms
memory: 8316kb

input:

sorted(concat(shuffle([1,2]),[1]))
[1,1,2]

output:

equal

result:

ok single line: 'equal'

Test #19:

score: 0
Accepted
time: 67ms
memory: 71764kb

input:

concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat...

output:

not equal

result:

ok single line: 'not equal'

Test #20:

score: 0
Accepted
time: 96ms
memory: 132844kb

input:

concat([2],concat([1],concat([9],concat([1],concat([7],concat([4],concat([5],concat([5],concat([7],concat([9],concat([7],concat([2],concat([2],concat([6],concat([3],concat([2],concat([8],concat([1],concat([5],concat([7],concat([9],concat([6],concat([7],concat([3],concat([4],concat([4],concat([2],con...

output:

not equal

result:

ok single line: 'not equal'

Test #21:

score: 0
Accepted
time: 39ms
memory: 70156kb

input:

concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat...

output:

equal

result:

ok single line: 'equal'

Test #22:

score: 0
Accepted
time: 66ms
memory: 71764kb

input:

sorted(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat...

output:

not equal

result:

ok single line: 'not equal'

Test #23:

score: 0
Accepted
time: 91ms
memory: 132848kb

input:

sorted(concat([1],concat([9],concat([1],concat([7],concat([4],concat([5],concat([5],concat([7],concat([9],concat([7],concat([2],concat([2],concat([6],concat([3],concat([2],concat([8],concat([1],concat([5],concat([7],concat([9],concat([6],concat([7],concat([3],concat([4],concat([4],concat([2],concat(...

output:

not equal

result:

ok single line: 'not equal'

Test #24:

score: 0
Accepted
time: 2ms
memory: 8256kb

input:

[9]
[9]

output:

equal

result:

ok single line: 'equal'

Test #25:

score: 0
Accepted
time: 0ms
memory: 8516kb

input:

[6]
[7]

output:

not equal

result:

ok single line: 'not equal'

Test #26:

score: 0
Accepted
time: 2ms
memory: 8304kb

input:

shuffle([23,42])
[23,42]

output:

not equal

result:

ok single line: 'not equal'

Test #27:

score: 0
Accepted
time: 1ms
memory: 8304kb

input:

shuffle([23,42])
[42,23]

output:

not equal

result:

ok single line: 'not equal'

Test #28:

score: 0
Accepted
time: 1ms
memory: 8464kb

input:

shuffle([1,1,1,1,1,1,1,1,1,2])
shuffle([2,1,1,1,1,1,1,1,1,1])

output:

equal

result:

ok single line: 'equal'

Test #29:

score: 0
Accepted
time: 11ms
memory: 16408kb

input:

shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuf...

output:

not equal

result:

ok single line: 'not equal'

Test #30:

score: 0
Accepted
time: 45ms
memory: 70144kb

input:

shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuffle(shuf...

output:

equal

result:

ok single line: 'equal'

Test #31:

score: 0
Accepted
time: 0ms
memory: 8532kb

input:

concat([536653,1235813,1966973,2011452,2531846,3116241,4737228,4970138,5881593,6218696,7291022,8283987,8389539,8580783,9842517,11559089,12757519,14172052,14327043,16355313,16906580,17631611,17763730,18265283,18574717,18987957,19840416,20115927,20627366,21119618,22274016,22651118,24032252,24509198,26...

output:

not equal

result:

ok single line: 'not equal'

Test #32:

score: 0
Accepted
time: 3ms
memory: 8536kb

input:

concat([636211,1200029,1896974,2147941,4508012,5530065,5618372,6197098,6331667,8619380,12166181,13526366,15071233,16681891,18491195,19049121,20244233,20462629,21764167,22001197,27461018,28311305,29004534,29531313,31595225,32127941,32627092,32677780,33054808,33913522,34050100,34489817,34795081,355590...

output:

not equal

result:

ok single line: 'not equal'

Test #33:

score: 0
Accepted
time: 0ms
memory: 8512kb

input:

concat([153466,858261,882817,1831772,2496958,2568961,3702146,4177309,4805792,5435449,5869274,7034865,8032610,8495798,9367582,9704075,9804034,9913809,10735315,12702906,13058540,14462880,15307579,16897380,18364792,23664089,24362972,24570715,24726937,27228794,28293839,28718708,30081677,33609144,3386333...

output:

not equal

result:

ok single line: 'not equal'

Test #34:

score: 0
Accepted
time: 2ms
memory: 8728kb

input:

concat([857950,1511744,1585322,3960490,4722749,6261867,6612129,8331861,10217597,11995279,13242668,17182567,17476080,21465632,21607546,22811233,23447533,24697050,24769521,24844470,27034621,27360107,28181891,28202689,31653616,34496598,34616036,35295549,35460635,36205804,36432769,37047292,37651553,3907...

output:

not equal

result:

ok single line: 'not equal'

Test #35:

score: 0
Accepted
time: 0ms
memory: 8620kb

input:

concat([107419,2924424,3222543,3868895,5173615,7011878,7279489,7986809,8091194,8671629,8863971,11144815,11959782,12471841,14240478,16863860,17605296,19319312,20294683,21654329,23566152,24738816,25657605,26199336,26710733,27477527,27562620,28963192,29884658,30517394,32658707,32952136,33068720,3421491...

output:

not equal

result:

ok single line: 'not equal'

Test #36:

score: 0
Accepted
time: 3ms
memory: 8808kb

input:

concat([1444928,3323601,5325464,6237485,7722453,8501600,8508366,8606082,12163926,14484322,14713162,14720960,15600041,16056825,17410997,20422425,20621501,20794205,21644435,22010891,23207510,24004560,24549643,25277195,25292357,25381816,25592803,26722791,27800120,28565552,29202946,29592201,30187904,303...

output:

not equal

result:

ok single line: 'not equal'

Test #37:

score: 0
Accepted
time: 3ms
memory: 8644kb

input:

concat([28373,3312143,5533735,5712861,7001200,8756347,8868031,9016710,11271329,11578877,12043515,12341663,12717351,14018228,14897218,15689254,15748242,17132614,17538761,18826117,20752167,22650282,23454297,24913847,28128505,28136177,31036423,31105479,32631625,33094004,36628990,36815631,40280256,41992...

output:

not equal

result:

ok single line: 'not equal'

Test #38:

score: 0
Accepted
time: 3ms
memory: 8556kb

input:

concat([249544,1113612,5263458,5573952,7495982,7568866,7811723,8340023,9705308,10243005,11203303,11249427,12462801,14062516,15757883,17167224,17512484,21034169,22053256,22805755,24005091,24251484,24486041,25015065,25297379,28155237,28332818,31568948,31668811,31897064,32734990,32922559,33940288,34828...

output:

not equal

result:

ok single line: 'not equal'

Test #39:

score: 0
Accepted
time: 3ms
memory: 8848kb

input:

concat([855028,3246961,5768761,6384670,7158101,7167986,7980324,8750924,9117183,11265945,11581198,12141751,12252571,12867283,13510891,13836743,14421678,14742634,15013159,15701459,16301375,17866142,18029447,18860157,19453826,19801604,20489416,21716898,22793434,23132056,23489873,24431857,24507012,25457...

output:

not equal

result:

ok single line: 'not equal'

Test #40:

score: 0
Accepted
time: 0ms
memory: 8640kb

input:

concat([1547522,3293245,4118000,5096956,5582863,5867019,9049129,9213146,10203340,10401229,11961314,12265184,13043829,14463949,15435520,16098965,18459825,18578488,19304289,19763772,19964219,20845334,22851473,23091006,23860680,24424711,26757970,26863424,27363786,27812008,30641950,31353502,31376200,334...

output:

not equal

result:

ok single line: 'not equal'

Test #41:

score: 0
Accepted
time: 0ms
memory: 8512kb

input:

concat([1397692,1441363,2134622,2178285,2530773,3420897,5233801,5564387,5970033,7167922,9219249,10521020,11586606,12335075,12402244,13574667,15041700,17139075,17698984,18173109,19626597,19981157,20153452,20770716,24052378,24790930,24985052,25408553,26180403,27475441,27790643,27979664,28400799,290315...

output:

not equal

result:

ok single line: 'not equal'

Test #42:

score: 0
Accepted
time: 3ms
memory: 8604kb

input:

concat([825417,2359079,2912290,4940108,5536635,7055733,9900478,12540958,13713505,15341140,15632901,16595244,17924369,17932514,19381256,19385767,19687931,22302251,23339208,26902176,27585994,27980018,28358610,28777192,29262642,29440736,29900981,32230849,33159665,33673485,35802363,37687551,38203328,383...

output:

not equal

result:

ok single line: 'not equal'

Test #43:

score: 0
Accepted
time: 0ms
memory: 8552kb

input:

concat([1007556,2088539,3173366,4731774,8308751,10733737,11718863,12555942,13014971,13193713,13696358,15480543,15687150,15716177,16803284,18976425,20782644,21357400,21785857,22178952,22605117,23164836,23583802,24331288,24526967,26147282,26324975,26766233,27850738,28099003,29417518,30155715,32108677,...

output:

not equal

result:

ok single line: 'not equal'

Test #44:

score: 0
Accepted
time: 0ms
memory: 8608kb

input:

concat([1102249,2337068,2496921,2679301,2958227,3740784,4106907,4139246,5552788,5720357,6200495,6290091,6902992,9954438,10749120,13051395,13152703,13215383,13668491,14497988,18164822,19920761,20170045,22151469,23890119,24295120,26960103,27353400,29437801,29764595,29820891,30097123,30553791,31505150,...

output:

not equal

result:

ok single line: 'not equal'

Test #45:

score: 0
Accepted
time: 3ms
memory: 8552kb

input:

concat([94511,863023,2434747,3054325,5383623,6037126,7509298,10030466,11409485,14950435,15949610,16201645,16634913,16756651,18222457,18346938,18724013,18725425,19573913,20237536,21140074,23454699,23576593,24031149,25888925,27024395,27550535,27607245,29489273,30772048,30802100,30937720,31399558,33522...

output:

not equal

result:

ok single line: 'not equal'

Test #46:

score: 0
Accepted
time: 3ms
memory: 8852kb

input:

concat([255014,648860,1220317,7757234,8606327,9464456,10190416,10202128,10853214,13699187,14651618,16322984,17187185,17769557,17891912,19901300,20485350,20541784,20600335,22009947,24071465,26069827,26654092,28385452,28419917,29419631,30527471,30825196,30841265,30855990,30925541,31765589,32512515,332...

output:

not equal

result:

ok single line: 'not equal'

Test #47:

score: 0
Accepted
time: 0ms
memory: 8560kb

input:

concat([48321,952190,1521777,2207481,3666341,3889108,4137556,4226907,4516088,4949672,6660470,11319367,13111633,13816941,14222570,14397261,16873079,16983442,20233457,21740000,24508191,24923366,25258254,25930465,26862601,27153424,27679965,30095446,30458187,33083245,35121129,35733718,36935485,37159992,...

output:

not equal

result:

ok single line: 'not equal'

Test #48:

score: 0
Accepted
time: 0ms
memory: 8576kb

input:

concat([39216,133446,2688355,3463130,3697917,4571459,7071859,8100453,8178029,9326056,10449348,12611320,14319682,15659779,15860437,17376597,18535242,19966340,20622578,20857834,21144651,21790368,22804855,24699018,24732566,27753714,28476822,29007381,29644592,32331059,32361848,33485165,34357057,35248718...

output:

not equal

result:

ok single line: 'not equal'

Test #49:

score: 0
Accepted
time: 0ms
memory: 8812kb

input:

concat([1945697,3189700,4036385,4446634,4532478,5130136,6243373,6766715,7578579,10971078,12679885,12901722,13206727,13391189,13739810,14512994,14698120,15722478,15929282,16981215,18165833,18615990,19062092,20233880,22181783,22584535,23053736,24763425,24793667,25214543,26409102,26549620,27640165,2851...

output:

not equal

result:

ok single line: 'not equal'

Test #50:

score: 0
Accepted
time: 3ms
memory: 8840kb

input:

concat([1395932,2216538,2564098,4981343,6008306,6452574,7989654,8337635,10036708,16211882,16592045,17059390,18435383,19101355,19677373,20926773,21509856,21571410,22439497,22605289,22909220,22997922,23918906,24636101,24846040,25563976,26362286,26446938,27784073,27959482,28236988,29743957,29744833,299...

output:

not equal

result:

ok single line: 'not equal'

Test #51:

score: 0
Accepted
time: 2ms
memory: 8340kb

input:

concat([34858775],concat(shuffle([27950687,790038677]),concat([34858775],concat([840883230,928697038],[34858775]))))
concat([34858775],concat([27950687,790038677],concat([34858775],concat(shuffle([840883230,928697038]),[34858775]))))

output:

not equal

result:

ok single line: 'not equal'

Test #52:

score: 0
Accepted
time: 0ms
memory: 8336kb

input:

concat([255243672],concat(shuffle([652476150,239946090]),concat([255243672],concat([752183973,992968932],[255243672]))))
concat([255243672],concat([239946090,652476150],concat([255243672],concat(shuffle([752183973,992968932]),[255243672]))))

output:

not equal

result:

ok single line: 'not equal'

Test #53:

score: 0
Accepted
time: 0ms
memory: 8332kb

input:

concat([481476722],concat(shuffle([29830729,32521739]),concat([481476722],concat([479938987,743797144],[481476722]))))
concat([481476722],concat([29830729,32521739],concat([481476722],concat(shuffle([743797144,479938987]),[481476722]))))

output:

not equal

result:

ok single line: 'not equal'

Test #54:

score: 0
Accepted
time: 1ms
memory: 8240kb

input:

concat([796421585],concat(shuffle([357883511,254898633]),concat([796421585],concat([833947739,961188642],[796421585]))))
concat([796421585],concat([254898633,357883511],concat([796421585],concat(shuffle([961188642,833947739]),[796421585]))))

output:

not equal

result:

ok single line: 'not equal'

Test #55:

score: 0
Accepted
time: 0ms
memory: 8312kb

input:

concat([522160492],concat(shuffle([8499726,13985913]),concat([522160492],concat([239664658,280983886],concat([522160492],concat(shuffle([477545842,502897273]),concat([522160492],concat([925663738,928297033],[522160492]))))))))
concat([522160492],concat([8499726,13985913],concat([522160492],concat(sh...

output:

not equal

result:

ok single line: 'not equal'

Test #56:

score: 0
Accepted
time: 1ms
memory: 8336kb

input:

concat([291596834],concat(shuffle([380677749,139453617]),concat([291596834],concat([417136436,588998751],concat([291596834],concat(shuffle([694696218,709422866]),concat([291596834],concat([916766066,971921354],[291596834]))))))))
concat([291596834],concat([139453617,380677749],concat([291596834],con...

output:

not equal

result:

ok single line: 'not equal'

Test #57:

score: 0
Accepted
time: 1ms
memory: 8536kb

input:

concat([537187744],concat(shuffle([24869525,333753823]),concat([537187744],concat([388492282,403205038],concat([537187744],concat(shuffle([565303511,857089578]),concat([537187744],concat([909900720,962827785],[537187744]))))))))
concat([537187744],concat([24869525,333753823],concat([537187744],conca...

output:

not equal

result:

ok single line: 'not equal'

Test #58:

score: 0
Accepted
time: 1ms
memory: 8316kb

input:

concat([274181453],concat(shuffle([53119234,7604119]),concat([274181453],concat([110443265,562859810],concat([274181453],concat(shuffle([623940408,840511477]),concat([274181453],concat([961847042,974457986],[274181453]))))))))
concat([274181453],concat([7604119,53119234],concat([274181453],concat(sh...

output:

not equal

result:

ok single line: 'not equal'

Test #59:

score: 0
Accepted
time: 1ms
memory: 8340kb

input:

concat([577526531],concat(shuffle([160886582,375456688]),concat([577526531],concat([404607376,408870242],concat([577526531],concat(shuffle([697927290,670150939]),concat([577526531],concat([748408823,807528134],[577526531]))))))))
concat([577526531],concat([160886582,375456688],concat([577526531],con...

output:

not equal

result:

ok single line: 'not equal'

Test #60:

score: 0
Accepted
time: 1ms
memory: 8332kb

input:

concat([474637487],concat(shuffle([587217809,410379376]),concat([474637487],concat([625610734,626463944],concat([474637487],concat(shuffle([764082444,690367603]),concat([474637487],concat([832056342,865756136],[474637487]))))))))
concat([474637487],concat([410379376,587217809],concat([474637487],con...

output:

not equal

result:

ok single line: 'not equal'

Test #61:

score: 0
Accepted
time: 1ms
memory: 8276kb

input:

concat([329878867],concat(shuffle([49875490,116002093]),concat([329878867],concat([344078499,405293404],concat([329878867],concat(shuffle([523650331,511580035]),concat([329878867],concat([704108009,878144076],[329878867]))))))))
concat([329878867],concat([49875490,116002093],concat([329878867],conca...

output:

not equal

result:

ok single line: 'not equal'

Test #62:

score: 0
Accepted
time: 1ms
memory: 8268kb

input:

concat([728879088],concat(shuffle([376051410,262247559]),concat([728879088],concat([520208745,706884001],concat([728879088],concat(shuffle([793933842,738368695]),concat([728879088],concat([919017881,927597362],[728879088]))))))))
concat([728879088],concat([262247559,376051410],concat([728879088],con...

output:

not equal

result:

ok single line: 'not equal'

Test #63:

score: 0
Accepted
time: 0ms
memory: 8248kb

input:

concat([642235425],concat(shuffle([65719513,78429524]),concat([642235425],concat([154180820,243453141],concat([642235425],concat(shuffle([248335400,427038187]),concat([642235425],concat([640961135,741327789],[642235425]))))))))
concat([642235425],concat([65719513,78429524],concat([642235425],concat(...

output:

not equal

result:

ok single line: 'not equal'

Test #64:

score: 0
Accepted
time: 1ms
memory: 8328kb

input:

concat([302916216],concat(shuffle([60964923,44920278]),concat([302916216],concat([136079117,345297087],concat([302916216],concat(shuffle([415650572,432300775]),concat([302916216],concat([474897768,966024672],[302916216]))))))))
concat([302916216],concat([44920278,60964923],concat([302916216],concat(...

output:

not equal

result:

ok single line: 'not equal'

Test #65:

score: 0
Accepted
time: 1ms
memory: 8324kb

input:

concat([657313654],concat(shuffle([65215472,118553532]),concat([657313654],concat([183106943,235174388],concat([657313654],concat(shuffle([393151323,472656633]),concat([657313654],concat([624892185,679065153],[657313654]))))))))
concat([657313654],concat([65215472,118553532],concat([657313654],conca...

output:

not equal

result:

ok single line: 'not equal'

Test #66:

score: 0
Accepted
time: 0ms
memory: 8532kb

input:

concat([450472017],concat(shuffle([200951465,162151550]),concat([450472017],concat([298459173,315937843],concat([450472017],concat(shuffle([459343062,517334332]),concat([450472017],concat([670947835,685572844],[450472017]))))))))
concat([450472017],concat([162151550,200951465],concat([450472017],con...

output:

not equal

result:

ok single line: 'not equal'

Test #67:

score: 0
Accepted
time: 1ms
memory: 8248kb

input:

concat([159197867],concat(shuffle([47052793,133962624]),concat([159197867],concat([549247005,577845879],concat([159197867],concat(shuffle([807335436,741056796]),concat([159197867],concat([972587444,976959038],[159197867]))))))))
concat([159197867],concat([47052793,133962624],concat([159197867],conca...

output:

not equal

result:

ok single line: 'not equal'

Test #68:

score: 0
Accepted
time: 1ms
memory: 8276kb

input:

concat([111440708],concat(shuffle([473072266,235951214]),concat([111440708],concat([704925260,709187313],concat([111440708],concat(shuffle([850236072,795493163]),concat([111440708],concat([878596096,891033684],[111440708]))))))))
concat([111440708],concat([235951214,473072266],concat([111440708],con...

output:

not equal

result:

ok single line: 'not equal'

Test #69:

score: 0
Accepted
time: 1ms
memory: 8532kb

input:

concat([897529258],concat(shuffle([220033182,256178493]),concat([897529258],concat([299009743,342185816],concat([897529258],concat(shuffle([502627780,480198340]),concat([897529258],concat([567453016,632544080],[897529258]))))))))
concat([897529258],concat([220033182,256178493],concat([897529258],con...

output:

not equal

result:

ok single line: 'not equal'

Test #70:

score: 0
Accepted
time: 0ms
memory: 8244kb

input:

concat([873654176],concat(shuffle([453622069,260405973]),concat([873654176],concat([467540663,550703589],concat([873654176],concat(shuffle([679104456,576520480]),concat([873654176],concat([801066976,831750467],[873654176]))))))))
concat([873654176],concat([260405973,453622069],concat([873654176],con...

output:

not equal

result:

ok single line: 'not equal'

Test #71:

score: 0
Accepted
time: 0ms
memory: 8308kb

input:

concat([48164352,124267963,218559586,476094369,477678948,509756864,625742645,804246694,832383876,865553805],concat(shuffle([169169433,501872065]),concat([48164352,124267963,218559586,476094369,477678948,509756864,625742645,804246694,832383876,865553805],concat([573159448,757440753],[48164352,1242679...

output:

not equal

result:

ok single line: 'not equal'

Test #72:

score: 0
Accepted
time: 0ms
memory: 8496kb

input:

concat([5524966,158135562,305868150,316709422,319416370,368728746,376200133,434192936,460559529,625203233],concat(shuffle([479982282,258957646]),concat([5524966,158135562,305868150,316709422,319416370,368728746,376200133,434192936,460559529,625203233],concat([755863611,991689604],[5524966,158135562,...

output:

not equal

result:

ok single line: 'not equal'

Test #73:

score: 0
Accepted
time: 1ms
memory: 8244kb

input:

concat([67295916,158062978,177920942,233064864,269111922,408944474,519789924,880361862,898493914,943410022],concat(shuffle([133170911,171667335]),concat([67295916,158062978,177920942,233064864,269111922,408944474,519789924,880361862,898493914,943410022],concat([767798366,918133539],[67295916,1580629...

output:

not equal

result:

ok single line: 'not equal'

Test #74:

score: 0
Accepted
time: 1ms
memory: 8540kb

input:

concat([146988952,243470219,274202511,278406524,291642130,312803321,521180604,626616218,801376452,951742509],concat(shuffle([546063929,34573753]),concat([146988952,243470219,274202511,278406524,291642130,312803321,521180604,626616218,801376452,951742509],concat([903422741,940457320],[146988952,24347...

output:

not equal

result:

ok single line: 'not equal'

Test #75:

score: 0
Accepted
time: 1ms
memory: 8424kb

input:

concat([171950418,279365244,313618375,374316666,539482284,679100580,693392625,708538541,893785098,977165926],concat(shuffle([172643973,484132891]),concat([171950418,279365244,313618375,374316666,539482284,679100580,693392625,708538541,893785098,977165926],concat([527771424,538831342],concat([1719504...

output:

not equal

result:

ok single line: 'not equal'

Test #76:

score: 0
Accepted
time: 1ms
memory: 8312kb

input:

concat([79795826,137646011,193612539,387634236,494873006,677383610,678213731,678512685,917308550,956226189],concat(shuffle([269207426,48774127]),concat([79795826,137646011,193612539,387634236,494873006,677383610,678213731,678512685,917308550,956226189],concat([335716862,677542662],concat([79795826,1...

output:

not equal

result:

ok single line: 'not equal'

Test #77:

score: 0
Accepted
time: 0ms
memory: 8348kb

input:

concat([25552906,123625062,166487570,315956821,433667877,481019053,510430824,566998039,799204322,864934613],concat(shuffle([191870454,198260210]),concat([25552906,123625062,166487570,315956821,433667877,481019053,510430824,566998039,799204322,864934613],concat([412541886,502943084],concat([25552906,...

output:

not equal

result:

ok single line: 'not equal'

Test #78:

score: 0
Accepted
time: 0ms
memory: 8536kb

input:

concat([22141058,90925384,95413531,168229014,185548976,401989254,462445433,662243991,813377889,901412887],concat(shuffle([272944416,4495145]),concat([22141058,90925384,95413531,168229014,185548976,401989254,462445433,662243991,813377889,901412887],concat([473698055,567299589],concat([22141058,909253...

output:

not equal

result:

ok single line: 'not equal'

Test #79:

score: 0
Accepted
time: 1ms
memory: 8324kb

input:

concat([19893641,279091225,311043757,363701498,459856657,479080659,625411211,712080202,748588654,786436249],concat(shuffle([440624430,475986842]),concat([19893641,279091225,311043757,363701498,459856657,479080659,625411211,712080202,748588654,786436249],concat([618121606,757109309],concat([19893641,...

output:

not equal

result:

ok single line: 'not equal'

Test #80:

score: 0
Accepted
time: 0ms
memory: 8320kb

input:

concat([138223525,161602533,371895486,391039407,548215842,552037763,616146061,697590044,760063234,773906395],concat(shuffle([66880516,4997002]),concat([138223525,161602533,371895486,391039407,548215842,552037763,616146061,697590044,760063234,773906395],concat([155380679,217969339],concat([138223525,...

output:

not equal

result:

ok single line: 'not equal'

Test #81:

score: 0
Accepted
time: 0ms
memory: 8212kb

input:

concat([53426146,125234201,204165810,356650825,367720641,373208137,482753846,557374671,646722365,839893081],concat(shuffle([127728503,289772547]),concat([53426146,125234201,204165810,356650825,367720641,373208137,482753846,557374671,646722365,839893081],concat([310454433,348779303],concat([53426146,...

output:

not equal

result:

ok single line: 'not equal'

Test #82:

score: 0
Accepted
time: 0ms
memory: 8272kb

input:

concat([145100206,160389176,207666663,477367138,537046317,537461627,542725190,625656622,778412037,825761511],concat(shuffle([129325284,7041937]),concat([145100206,160389176,207666663,477367138,537046317,537461627,542725190,625656622,778412037,825761511],concat([346107972,721031883],concat([145100206...

output:

not equal

result:

ok single line: 'not equal'

Test #83:

score: 0
Accepted
time: 0ms
memory: 8252kb

input:

concat([1947230,92996122,98216869,275439772,433525059,444801121,589117510,738589334,838592940,906915602],concat(shuffle([95767698,135767693]),concat([1947230,92996122,98216869,275439772,433525059,444801121,589117510,738589334,838592940,906915602],concat([167072794,335494954],concat([1947230,92996122...

output:

not equal

result:

ok single line: 'not equal'

Test #84:

score: 0
Accepted
time: 1ms
memory: 8540kb

input:

concat([18261359,119539191,276680483,397787784,559223542,812914170,841371434,954383137,979107010,997213516],concat(shuffle([348995678,270390217]),concat([18261359,119539191,276680483,397787784,559223542,812914170,841371434,954383137,979107010,997213516],concat([442438046,667129438],concat([18261359,...

output:

not equal

result:

ok single line: 'not equal'

Test #85:

score: 0
Accepted
time: 1ms
memory: 8532kb

input:

concat([69878059,241254542,392339614,426794658,435437971,488256566,529277384,748380682,945749288,975404012],concat(shuffle([89306119,152073396]),concat([69878059,241254542,392339614,426794658,435437971,488256566,529277384,748380682,945749288,975404012],concat([232317567,493600011],concat([69878059,2...

output:

not equal

result:

ok single line: 'not equal'

Test #86:

score: 0
Accepted
time: 1ms
memory: 8252kb

input:

concat([82103381,364075995,492931685,581665409,630913342,651397045,685990912,755892914,861307574,922465855],concat(shuffle([227311519,146333534]),concat([82103381,364075995,492931685,581665409,630913342,651397045,685990912,755892914,861307574,922465855],concat([412747315,564705718],concat([82103381,...

output:

not equal

result:

ok single line: 'not equal'

Test #87:

score: 0
Accepted
time: 1ms
memory: 8340kb

input:

concat([209736307,298301550,379429309,399739918,420526556,458436720,498057783,623339311,787444639,943845335],concat(shuffle([10817938,151572356]),concat([209736307,298301550,379429309,399739918,420526556,458436720,498057783,623339311,787444639,943845335],concat([192392607,307697815],concat([20973630...

output:

not equal

result:

ok single line: 'not equal'

Test #88:

score: 0
Accepted
time: 1ms
memory: 8340kb

input:

concat([34275047,213783800,267093459,268882158,328420516,350707250,482413943,647926654,725554347,920535828],concat(shuffle([94482885,8481560]),concat([34275047,213783800,267093459,268882158,328420516,350707250,482413943,647926654,725554347,920535828],concat([132046731,191724344],concat([34275047,213...

output:

not equal

result:

ok single line: 'not equal'

Test #89:

score: 0
Accepted
time: 1ms
memory: 8328kb

input:

concat([341951440,343167766,382778259,426221692,516380270,611503646,625810464,799609206,804235621,829682239],concat(shuffle([77719196,82967423]),concat([341951440,343167766,382778259,426221692,516380270,611503646,625810464,799609206,804235621,829682239],concat([94988468,418941364],concat([341951440,...

output:

not equal

result:

ok single line: 'not equal'

Test #90:

score: 0
Accepted
time: 0ms
memory: 8252kb

input:

concat([113021216,137477691,200890563,592829811,616641266,629784279,632551895,679521583,863697387,894762289],concat(shuffle([550283796,531617306]),concat([113021216,137477691,200890563,592829811,616641266,629784279,632551895,679521583,863697387,894762289],concat([560763275,578056845],concat([1130212...

output:

not equal

result:

ok single line: 'not equal'

Test #91:

score: 0
Accepted
time: 0ms
memory: 8316kb

input:

concat(concat([8376],concat(shuffle([1176]),[2342])),concat(concat(shuffle([1301]),concat([5852],[3536])),concat(concat([4239],[318]),shuffle([5295,7487]))))
concat(concat([8376],[1176,2342,1301,5852]),concat(concat([3536],[4239]),concat([318],shuffle([5295,7487]))))

output:

equal

result:

ok single line: 'equal'

Test #92:

score: -100
Wrong Answer
time: 1ms
memory: 8556kb

input:

concat([4448],concat(concat(concat(concat(concat([2387],concat(concat(concat([7464],[7646,7191]),[9136]),concat(concat(shuffle([72,9474]),[1344]),[4784]))),concat(concat([3184],concat(concat([7103,1127,2363,9258,4199],[1760]),concat(shuffle([3059,3104,6632,1603,27]),shuffle([3694])))),concat(concat(...

output:

not equal

result:

wrong answer 1st lines differ - expected: 'equal', found: 'not equal'