QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#526116#7276. A Light Inconvenienceskittles1412#100 ✓145ms3832kbC++172.8kb2024-08-21 11:12:322024-08-21 11:12:33

Judging History

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

  • [2024-08-21 11:12:33]
  • 评测
  • 测评结果:100
  • 用时:145ms
  • 内存:3832kb
  • [2024-08-21 11:12:32]
  • 提交

answer

// cf bits/extc++.h nonsense
#ifdef ONLINE_JUDGE
#define _EXT_CODECVT_SPECIALIZATIONS_H 1
#define _EXT_ENC_FILEBUF_H 1
#endif
#include "bits/extc++.h"

using namespace std;

template <typename T, typename... U>
void dbgh(const T& t, const U&... u) {
    cerr << t;
    ((cerr << " | " << u), ...);
    cerr << endl;
}

#ifdef DEBUG
#define dbg(...)                                              \
    cerr << "L" << __LINE__ << " [" << #__VA_ARGS__ << "]: "; \
    dbgh(__VA_ARGS__)
#else
#define dbg(...)
#define cerr   \
    if (false) \
    cerr
#endif

using ll = long long;

#define endl "\n"
#define long int64_t
#define sz(x) int(std::size(x))

inline void init_io() {
    cin.tie(nullptr);
    cin.exceptions(ios::failbit);
    ios_base::sync_with_stdio(false);
}

template <typename T>
vector<T> iota(int n, const T& x) {
    vector<T> arr(n);
    iota(begin(arr), end(arr), x);
    return arr;
}

template <typename T>
ostream& operator<<(ostream& out, const vector<T>& arr) {
    out << "[";
    for (int i = 0; i < sz(arr); i++) {
        if (i) {
            out << ", ";
        }
        out << arr[i];
    }
    return out << "]";
}

template <typename T>
int c_lb(const vector<T>& arr, const T& x) {
    return int(lower_bound(begin(arr), end(arr), x) - begin(arr));
}

template <typename T>
int c_ub(const vector<T>& arr, const T& x) {
    return int(upper_bound(begin(arr), end(arr), x) - begin(arr));
}

template <typename T>
T reversed(T arr) {
    reverse(begin(arr), end(arr));
    return arr;
}

template <typename T>
T sorted(T arr) {
    sort(begin(arr), end(arr));
    return arr;
}

template <typename T>
bool on(T mask, int bit) {
    return (mask >> bit) & 1;
}

template <typename A, typename B>
ostream& operator<<(ostream& out, const pair<A, B>& p) {
    return out << "(" << p.first << ", " << p.second << ")";
}

#define long ll

vector<long> ans;

void optimize(vector<long>& arr, long m, long kv) {
    sort(begin(arr), end(arr));

    ans.clear();
    long prv = m - 1;
    ans.push_back(prv);

    while (prv) {
        long mn_x = prv - (m - prv);

        long px = -1;
        while (sz(arr) && mn_x <= arr.back() + kv) {
            px = arr.back();
            arr.pop_back();
        }
        arr.push_back(px);
        if (px <= mn_x) {
            prv = mn_x;
        } else {
            prv = px;
        }
        ans.push_back(prv);
    }

    reverse(begin(ans), end(ans));
    arr.clear();
    copy(begin(ans), end(ans), back_inserter(arr));
}

long m = 1;
vector<long> arr{0}, buf;

pair<ll, vector<ll>> join(ll kv) {
    m += kv;

    optimize(arr, m, kv);
    buf.clear();
    for (auto& a : arr) {
        buf.push_back(a + 1);
    }

    return {kv, buf};
}

pair<ll, vector<ll>> leave(ll kv) {
    m -= kv;

    optimize(arr, m, kv);
    buf.clear();
    for (auto& a : arr) {
        buf.push_back(a + 1);
    }

    return {kv, buf};
}

void prepare() {}

详细

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 0ms
memory: 3760kb

input:

\x03

output:


result:

ok Correct

Test #2:

score: 5
Accepted
time: 59ms
memory: 3520kb

input:


output:


result:

ok Correct

Test #3:

score: 5
Accepted
time: 72ms
memory: 3800kb

input:

Ĝ\x0e]B

output:


result:

ok Correct

Test #4:

score: 5
Accepted
time: 51ms
memory: 3472kb

input:


output:


result:

ok Correct

Test #5:

score: 5
Accepted
time: 102ms
memory: 3512kb

input:

Q

output:


result:

ok Correct

Test #6:

score: 5
Accepted
time: 77ms
memory: 3580kb

input:

\x03~

output:


result:

ok Correct

Test #7:

score: 5
Accepted
time: 95ms
memory: 3804kb

input:


output:


result:

ok Correct

Test #8:

score: 5
Accepted
time: 88ms
memory: 3800kb

input:

\x11!

output:


result:

ok Correct

Test #9:

score: 5
Accepted
time: 70ms
memory: 3596kb

input:

output:


result:

ok Correct

Test #10:

score: 5
Accepted
time: 61ms
memory: 3736kb

input:

2h\x0e

output:


result:

ok Correct

Test #11:

score: 5
Accepted
time: 113ms
memory: 3580kb

input:

\5

output:


result:

ok Correct

Subtask #2:

score: 5
Accepted

Test #12:

score: 5
Accepted
time: 1ms
memory: 3588kb

input:

\x03

output:


result:

ok Correct

Test #13:

score: 5
Accepted
time: 76ms
memory: 3592kb

input:

!\x02

output:


result:

ok Correct

Test #14:

score: 5
Accepted
time: 10ms
memory: 3804kb

input:

\x02

output:


result:

ok Correct

Test #15:

score: 5
Accepted
time: 48ms
memory: 3592kb

input:

|\x02

output:


result:

ok Correct

Test #16:

score: 5
Accepted
time: 49ms
memory: 3780kb

input:


output:


result:

ok Correct

Test #17:

score: 5
Accepted
time: 10ms
memory: 3572kb

input:


output:


result:

ok Correct

Test #18:

score: 5
Accepted
time: 51ms
memory: 3760kb

input:

\x13\x02

output:


result:

ok Correct

Test #19:

score: 5
Accepted
time: 81ms
memory: 3756kb

input:

^\x02

output:


result:

ok Correct

Test #20:

score: 5
Accepted
time: 0ms
memory: 3468kb

input:

\x01

output:


result:

ok Correct

Test #21:

score: 5
Accepted
time: 28ms
memory: 3512kb

input:

[\x02

output:


result:

ok Correct

Test #22:

score: 5
Accepted
time: 0ms
memory: 3580kb

input:

)\x02

output:


result:

ok Correct

Test #23:

score: 5
Accepted
time: 19ms
memory: 3572kb

input:


output:


result:

ok Correct

Subtask #3:

score: 10
Accepted

Test #24:

score: 10
Accepted
time: 1ms
memory: 3760kb

input:

\x03

output:


result:

ok Correct

Test #25:

score: 10
Accepted
time: 51ms
memory: 3764kb

input:

!\x02

output:


result:

ok Correct

Test #26:

score: 10
Accepted
time: 13ms
memory: 3724kb

input:

\x02

output:


result:

ok Correct

Test #27:

score: 10
Accepted
time: 80ms
memory: 3588kb

input:

|\x02

output:


result:

ok Correct

Test #28:

score: 10
Accepted
time: 0ms
memory: 3536kb

input:

\x1b\x0e

output:


result:

ok Correct

Test #29:

score: 10
Accepted
time: 4ms
memory: 3576kb

input:

C\x0e

output:


result:

ok Correct

Test #30:

score: 10
Accepted
time: 0ms
memory: 3580kb

input:

c\x0f

output:


result:

ok Correct

Test #31:

score: 10
Accepted
time: 55ms
memory: 3788kb

input:


output:


result:

ok Correct

Test #32:

score: 10
Accepted
time: 0ms
memory: 3532kb

input:

\x06

output:


result:

ok Correct

Test #33:

score: 10
Accepted
time: 52ms
memory: 3468kb

input:

q\x0c

output:


result:

ok Correct

Test #34:

score: 10
Accepted
time: 50ms
memory: 3804kb

input:

!\x11

output:


result:

ok Correct

Test #35:

score: 10
Accepted
time: 36ms
memory: 3508kb

input:


output:


result:

ok Correct

Test #36:

score: 10
Accepted
time: 8ms
memory: 3596kb

input:

\x03

output:


result:

ok Correct

Test #37:

score: 10
Accepted
time: 56ms
memory: 3508kb

input:

6\x04

output:


result:

ok Correct

Test #38:

score: 10
Accepted
time: 28ms
memory: 3468kb

input:


output:


result:

ok Correct

Test #39:

score: 10
Accepted
time: 48ms
memory: 3792kb

input:

\\x11

output:


result:

ok Correct

Test #40:

score: 10
Accepted
time: 68ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #41:

score: 10
Accepted
time: 0ms
memory: 3588kb

input:


output:


result:

ok Correct

Test #42:

score: 10
Accepted
time: 41ms
memory: 3588kb

input:

\x13\x02

output:


result:

ok Correct

Test #43:

score: 10
Accepted
time: 25ms
memory: 3576kb

input:

^\x02

output:


result:

ok Correct

Test #44:

score: 10
Accepted
time: 6ms
memory: 3504kb

input:

\x01

output:


result:

ok Correct

Test #45:

score: 10
Accepted
time: 58ms
memory: 3788kb

input:

[\x02

output:


result:

ok Correct

Test #46:

score: 10
Accepted
time: 8ms
memory: 3792kb

input:

)\x02

output:


result:

ok Correct

Test #47:

score: 10
Accepted
time: 69ms
memory: 3580kb

input:


output:


result:

ok Correct

Subtask #4:

score: 5
Accepted

Test #48:

score: 5
Accepted
time: 1ms
memory: 3516kb

input:

\x03

output:


result:

ok Correct

Test #49:

score: 5
Accepted
time: 29ms
memory: 3588kb

input:

!\x02

output:


result:

ok Correct

Test #50:

score: 5
Accepted
time: 9ms
memory: 3728kb

input:

\x02

output:


result:

ok Correct

Test #51:

score: 5
Accepted
time: 56ms
memory: 3528kb

input:

|\x02

output:


result:

ok Correct

Test #52:

score: 5
Accepted
time: 1ms
memory: 3800kb

input:

\x1b\x0e

output:


result:

ok Correct

Test #53:

score: 5
Accepted
time: 4ms
memory: 3576kb

input:

C\x0e

output:


result:

ok Correct

Test #54:

score: 5
Accepted
time: 0ms
memory: 3608kb

input:

c\x0f

output:


result:

ok Correct

Test #55:

score: 5
Accepted
time: 54ms
memory: 3788kb

input:


output:


result:

ok Correct

Test #56:

score: 5
Accepted
time: 0ms
memory: 3796kb

input:

\x06

output:


result:

ok Correct

Test #57:

score: 5
Accepted
time: 83ms
memory: 3444kb

input:

q\x0c

output:


result:

ok Correct

Test #58:

score: 5
Accepted
time: 69ms
memory: 3792kb

input:

!\x11

output:


result:

ok Correct

Test #59:

score: 5
Accepted
time: 43ms
memory: 3676kb

input:


output:


result:

ok Correct

Test #60:

score: 5
Accepted
time: 7ms
memory: 3804kb

input:

\x03

output:


result:

ok Correct

Test #61:

score: 5
Accepted
time: 21ms
memory: 3756kb

input:

6\x04

output:


result:

ok Correct

Test #62:

score: 5
Accepted
time: 61ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #63:

score: 5
Accepted
time: 37ms
memory: 3572kb

input:

\\x11

output:


result:

ok Correct

Test #64:

score: 5
Accepted
time: 42ms
memory: 3588kb

input:


output:


result:

ok Correct

Test #65:

score: 5
Accepted
time: 0ms
memory: 3756kb

input:

n1

output:


result:

ok Correct

Test #66:

score: 5
Accepted
time: 0ms
memory: 3588kb

input:

	T

output:


result:

ok Correct

Test #67:

score: 5
Accepted
time: 8ms
memory: 3588kb

input:

HW

output:


result:

ok Correct

Test #68:

score: 5
Accepted
time: 78ms
memory: 3600kb

input:

>P

output:


result:

ok Correct

Test #69:

score: 5
Accepted
time: 84ms
memory: 3504kb

input:

\x01

output:


result:

ok Correct

Test #70:

score: 5
Accepted
time: 17ms
memory: 3760kb

input:


output:


result:

ok Correct

Test #71:

score: 5
Accepted
time: 57ms
memory: 3576kb

input:

.O

output:


result:

ok Correct

Test #72:

score: 5
Accepted
time: 67ms
memory: 3576kb

input:

U\x1d

output:


result:

ok Correct

Test #73:

score: 5
Accepted
time: 52ms
memory: 3512kb

input:

\x18

output:


result:

ok Correct

Test #74:

score: 5
Accepted
time: 47ms
memory: 3580kb

input:


output:


result:

ok Correct

Test #75:

score: 5
Accepted
time: 46ms
memory: 3792kb

input:

\x084

output:


result:

ok Correct

Test #76:

score: 5
Accepted
time: 25ms
memory: 3724kb

input:


output:


result:

ok Correct

Test #77:

score: 5
Accepted
time: 63ms
memory: 3572kb

input:

B\x15

output:


result:

ok Correct

Test #78:

score: 5
Accepted
time: 50ms
memory: 3760kb

input:

\x13\x02

output:


result:

ok Correct

Test #79:

score: 5
Accepted
time: 38ms
memory: 3576kb

input:

^\x02

output:


result:

ok Correct

Test #80:

score: 5
Accepted
time: 2ms
memory: 3572kb

input:

\x01

output:


result:

ok Correct

Test #81:

score: 5
Accepted
time: 59ms
memory: 3592kb

input:

[\x02

output:


result:

ok Correct

Test #82:

score: 5
Accepted
time: 4ms
memory: 3792kb

input:

)\x02

output:


result:

ok Correct

Test #83:

score: 5
Accepted
time: 57ms
memory: 3580kb

input:


output:


result:

ok Correct

Subtask #5:

score: 10
Accepted

Test #84:

score: 10
Accepted
time: 0ms
memory: 3528kb

input:

\x03

output:


result:

ok Correct

Test #85:

score: 10
Accepted
time: 20ms
memory: 3512kb

input:

!\x02

output:


result:

ok Correct

Test #86:

score: 10
Accepted
time: 21ms
memory: 3508kb

input:

\x02

output:


result:

ok Correct

Test #87:

score: 10
Accepted
time: 85ms
memory: 3576kb

input:

|\x02

output:


result:

ok Correct

Test #88:

score: 10
Accepted
time: 2ms
memory: 3508kb

input:

\x1b\x0e

output:


result:

ok Correct

Test #89:

score: 10
Accepted
time: 2ms
memory: 3592kb

input:

C\x0e

output:


result:

ok Correct

Test #90:

score: 10
Accepted
time: 0ms
memory: 3600kb

input:

c\x0f

output:


result:

ok Correct

Test #91:

score: 10
Accepted
time: 55ms
memory: 3596kb

input:


output:


result:

ok Correct

Test #92:

score: 10
Accepted
time: 0ms
memory: 3788kb

input:

\x06

output:


result:

ok Correct

Test #93:

score: 10
Accepted
time: 54ms
memory: 3512kb

input:

q\x0c

output:


result:

ok Correct

Test #94:

score: 10
Accepted
time: 46ms
memory: 3584kb

input:

!\x11

output:


result:

ok Correct

Test #95:

score: 10
Accepted
time: 54ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #96:

score: 10
Accepted
time: 0ms
memory: 3756kb

input:

\x03

output:


result:

ok Correct

Test #97:

score: 10
Accepted
time: 50ms
memory: 3576kb

input:

6\x04

output:


result:

ok Correct

Test #98:

score: 10
Accepted
time: 59ms
memory: 3508kb

input:


output:


result:

ok Correct

Test #99:

score: 10
Accepted
time: 62ms
memory: 3532kb

input:

\\x11

output:


result:

ok Correct

Test #100:

score: 10
Accepted
time: 46ms
memory: 3512kb

input:


output:


result:

ok Correct

Test #101:

score: 10
Accepted
time: 6ms
memory: 3588kb

input:

n1

output:


result:

ok Correct

Test #102:

score: 10
Accepted
time: 0ms
memory: 3792kb

input:

	T

output:


result:

ok Correct

Test #103:

score: 10
Accepted
time: 5ms
memory: 3808kb

input:

HW

output:


result:

ok Correct

Test #104:

score: 10
Accepted
time: 67ms
memory: 3588kb

input:

>P

output:


result:

ok Correct

Test #105:

score: 10
Accepted
time: 32ms
memory: 3508kb

input:

\x01

output:


result:

ok Correct

Test #106:

score: 10
Accepted
time: 13ms
memory: 3580kb

input:


output:


result:

ok Correct

Test #107:

score: 10
Accepted
time: 48ms
memory: 3464kb

input:

.O

output:


result:

ok Correct

Test #108:

score: 10
Accepted
time: 61ms
memory: 3796kb

input:

U\x1d

output:


result:

ok Correct

Test #109:

score: 10
Accepted
time: 27ms
memory: 3596kb

input:

\x18

output:


result:

ok Correct

Test #110:

score: 10
Accepted
time: 63ms
memory: 3724kb

input:


output:


result:

ok Correct

Test #111:

score: 10
Accepted
time: 61ms
memory: 3800kb

input:

\x084

output:


result:

ok Correct

Test #112:

score: 10
Accepted
time: 34ms
memory: 3572kb

input:


output:


result:

ok Correct

Test #113:

score: 10
Accepted
time: 86ms
memory: 3764kb

input:

B\x15

output:


result:

ok Correct

Test #114:

score: 10
Accepted
time: 72ms
memory: 3528kb

input:

\x0e)\x01

output:


result:

ok Correct

Test #115:

score: 10
Accepted
time: 77ms
memory: 3760kb

input:


output:


result:

ok Correct

Test #116:

score: 10
Accepted
time: 88ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #117:

score: 10
Accepted
time: 37ms
memory: 3580kb

input:

\x13\x02

output:


result:

ok Correct

Test #118:

score: 10
Accepted
time: 55ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #119:

score: 10
Accepted
time: 57ms
memory: 3504kb

input:

\x02

output:


result:

ok Correct

Test #120:

score: 10
Accepted
time: 55ms
memory: 3724kb

input:


output:


result:

ok Correct

Test #121:

score: 10
Accepted
time: 30ms
memory: 3792kb

input:

h

output:


result:

ok Correct

Test #122:

score: 10
Accepted
time: 49ms
memory: 3584kb

input:

\x04

output:


result:

ok Correct

Test #123:

score: 10
Accepted
time: 37ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #124:

score: 10
Accepted
time: 36ms
memory: 3588kb

input:

XM\x01

output:


result:

ok Correct

Test #125:

score: 10
Accepted
time: 58ms
memory: 3580kb

input:

v

output:


result:

ok Correct

Test #126:

score: 10
Accepted
time: 45ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #127:

score: 10
Accepted
time: 73ms
memory: 3504kb

input:

^\x02

output:


result:

ok Correct

Test #128:

score: 10
Accepted
time: 0ms
memory: 3596kb

input:

\x01

output:


result:

ok Correct

Test #129:

score: 10
Accepted
time: 45ms
memory: 3760kb

input:

[\x02

output:


result:

ok Correct

Test #130:

score: 10
Accepted
time: 5ms
memory: 3528kb

input:

)\x02

output:


result:

ok Correct

Test #131:

score: 10
Accepted
time: 47ms
memory: 3464kb

input:


output:


result:

ok Correct

Subtask #6:

score: 5
Accepted

Test #132:

score: 5
Accepted
time: 1ms
memory: 3588kb

input:

\x03

output:


result:

ok Correct

Test #133:

score: 5
Accepted
time: 68ms
memory: 3596kb

input:

!\x02

output:


result:

ok Correct

Test #134:

score: 5
Accepted
time: 7ms
memory: 3580kb

input:

\x02

output:


result:

ok Correct

Test #135:

score: 5
Accepted
time: 57ms
memory: 3528kb

input:

|\x02

output:


result:

ok Correct

Test #136:

score: 5
Accepted
time: 0ms
memory: 3576kb

input:

\x1b\x0e

output:


result:

ok Correct

Test #137:

score: 5
Accepted
time: 3ms
memory: 3524kb

input:

C\x0e

output:


result:

ok Correct

Test #138:

score: 5
Accepted
time: 4ms
memory: 3576kb

input:

c\x0f

output:


result:

ok Correct

Test #139:

score: 5
Accepted
time: 41ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #140:

score: 5
Accepted
time: 3ms
memory: 3592kb

input:

\x06

output:


result:

ok Correct

Test #141:

score: 5
Accepted
time: 59ms
memory: 3508kb

input:

q\x0c

output:


result:

ok Correct

Test #142:

score: 5
Accepted
time: 38ms
memory: 3584kb

input:

!\x11

output:


result:

ok Correct

Test #143:

score: 5
Accepted
time: 65ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #144:

score: 5
Accepted
time: 2ms
memory: 3592kb

input:

\x03

output:


result:

ok Correct

Test #145:

score: 5
Accepted
time: 24ms
memory: 3600kb

input:

6\x04

output:


result:

ok Correct

Test #146:

score: 5
Accepted
time: 62ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #147:

score: 5
Accepted
time: 51ms
memory: 3512kb

input:

\\x11

output:


result:

ok Correct

Test #148:

score: 5
Accepted
time: 62ms
memory: 3464kb

input:


output:


result:

ok Correct

Test #149:

score: 5
Accepted
time: 0ms
memory: 3788kb

input:

n1

output:


result:

ok Correct

Test #150:

score: 5
Accepted
time: 10ms
memory: 3464kb

input:

	T

output:


result:

ok Correct

Test #151:

score: 5
Accepted
time: 3ms
memory: 3792kb

input:

HW

output:


result:

ok Correct

Test #152:

score: 5
Accepted
time: 32ms
memory: 3500kb

input:

>P

output:


result:

ok Correct

Test #153:

score: 5
Accepted
time: 48ms
memory: 3596kb

input:

\x01

output:


result:

ok Correct

Test #154:

score: 5
Accepted
time: 20ms
memory: 3756kb

input:


output:


result:

ok Correct

Test #155:

score: 5
Accepted
time: 60ms
memory: 3580kb

input:

.O

output:


result:

ok Correct

Test #156:

score: 5
Accepted
time: 26ms
memory: 3600kb

input:

U\x1d

output:


result:

ok Correct

Test #157:

score: 5
Accepted
time: 89ms
memory: 3464kb

input:

\x18

output:


result:

ok Correct

Test #158:

score: 5
Accepted
time: 31ms
memory: 3468kb

input:


output:


result:

ok Correct

Test #159:

score: 5
Accepted
time: 47ms
memory: 3588kb

input:

\x084

output:


result:

ok Correct

Test #160:

score: 5
Accepted
time: 35ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #161:

score: 5
Accepted
time: 26ms
memory: 3792kb

input:

B\x15

output:


result:

ok Correct

Test #162:

score: 5
Accepted
time: 70ms
memory: 3580kb

input:

\x0e)\x01

output:


result:

ok Correct

Test #163:

score: 5
Accepted
time: 39ms
memory: 3596kb

input:


output:


result:

ok Correct

Test #164:

score: 5
Accepted
time: 27ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #165:

score: 5
Accepted
time: 26ms
memory: 3764kb

input:

\x13\x02

output:


result:

ok Correct

Test #166:

score: 5
Accepted
time: 63ms
memory: 3536kb

input:


output:


result:

ok Correct

Test #167:

score: 5
Accepted
time: 50ms
memory: 3804kb

input:

\x02

output:


result:

ok Correct

Test #168:

score: 5
Accepted
time: 54ms
memory: 3532kb

input:


output:


result:

ok Correct

Test #169:

score: 5
Accepted
time: 43ms
memory: 3576kb

input:

h

output:


result:

ok Correct

Test #170:

score: 5
Accepted
time: 81ms
memory: 3580kb

input:

\x04

output:


result:

ok Correct

Test #171:

score: 5
Accepted
time: 53ms
memory: 3572kb

input:


output:


result:

ok Correct

Test #172:

score: 5
Accepted
time: 62ms
memory: 3512kb

input:

XM\x01

output:


result:

ok Correct

Test #173:

score: 5
Accepted
time: 68ms
memory: 3508kb

input:

v

output:


result:

ok Correct

Test #174:

score: 5
Accepted
time: 52ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #175:

score: 5
Accepted
time: 48ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #176:

score: 5
Accepted
time: 74ms
memory: 3760kb

input:

^\x02

output:


result:

ok Correct

Test #177:

score: 5
Accepted
time: 40ms
memory: 3732kb

input:


output:


result:

ok Correct

Test #178:

score: 5
Accepted
time: 65ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #179:

score: 5
Accepted
time: 61ms
memory: 3764kb

input:

٨\x01

output:


result:

ok Correct

Test #180:

score: 5
Accepted
time: 45ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #181:

score: 5
Accepted
time: 36ms
memory: 3516kb

input:

\x13

output:


result:

ok Correct

Test #182:

score: 5
Accepted
time: 76ms
memory: 3572kb

input:

Z3\x06

output:


result:

ok Correct

Test #183:

score: 5
Accepted
time: 47ms
memory: 3572kb

input:


output:


result:

ok Correct

Test #184:

score: 5
Accepted
time: 80ms
memory: 3576kb

input:

k_\x05

output:


result:

ok Correct

Test #185:

score: 5
Accepted
time: 46ms
memory: 3512kb

input:

o

output:


result:

ok Correct

Test #186:

score: 5
Accepted
time: 61ms
memory: 3760kb

input:


output:


result:

ok Correct

Test #187:

score: 5
Accepted
time: 0ms
memory: 3512kb

input:

\x01

output:


result:

ok Correct

Test #188:

score: 5
Accepted
time: 42ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #189:

score: 5
Accepted
time: 32ms
memory: 3804kb

input:

[\x02

output:


result:

ok Correct

Test #190:

score: 5
Accepted
time: 6ms
memory: 3592kb

input:

)\x02

output:


result:

ok Correct

Test #191:

score: 5
Accepted
time: 52ms
memory: 3564kb

input:


output:


result:

ok Correct

Subtask #7:

score: 60
Accepted

Test #192:

score: 60
Accepted
time: 1ms
memory: 3592kb

input:

\x03

output:


result:

ok Correct

Test #193:

score: 60
Accepted
time: 99ms
memory: 3796kb

input:


output:


result:

ok Correct

Test #194:

score: 60
Accepted
time: 31ms
memory: 3732kb

input:


output:


result:

ok Correct

Test #195:

score: 60
Accepted
time: 52ms
memory: 3476kb

input:


output:


result:

ok Correct

Test #196:

score: 60
Accepted
time: 105ms
memory: 3832kb

input:


output:


result:

ok Correct

Test #197:

score: 60
Accepted
time: 124ms
memory: 3816kb

input:


output:


result:

ok Correct

Test #198:

score: 60
Accepted
time: 107ms
memory: 3592kb

input:

Z]

output:


result:

ok Correct

Test #199:

score: 60
Accepted
time: 89ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #200:

score: 60
Accepted
time: 86ms
memory: 3524kb

input:


output:


result:

ok Correct

Test #201:

score: 60
Accepted
time: 93ms
memory: 3592kb

input:

\x01

output:


result:

ok Correct

Test #202:

score: 60
Accepted
time: 35ms
memory: 3824kb

input:


output:


result:

ok Correct

Test #203:

score: 60
Accepted
time: 57ms
memory: 3612kb

input:

{܈]xEc\x01

output:


result:

ok Correct

Test #204:

score: 60
Accepted
time: 65ms
memory: 3580kb

input:

Ĝ\x0e]B

output:


result:

ok Correct

Test #205:

score: 60
Accepted
time: 95ms
memory: 3816kb

input:

\x07]HbIJ\x18

output:


result:

ok Correct

Test #206:

score: 60
Accepted
time: 73ms
memory: 3488kb

input:


output:


result:

ok Correct

Test #207:

score: 60
Accepted
time: 125ms
memory: 3820kb

input:

7

output:


result:

ok Correct

Test #208:

score: 60
Accepted
time: 112ms
memory: 3772kb

input:


output:


result:

ok Correct

Test #209:

score: 60
Accepted
time: 81ms
memory: 3596kb

input:

3

output:


result:

ok Correct

Test #210:

score: 60
Accepted
time: 65ms
memory: 3772kb

input:

U&2

output:


result:

ok Correct

Test #211:

score: 60
Accepted
time: 89ms
memory: 3524kb

input:


output:


result:

ok Correct

Test #212:

score: 60
Accepted
time: 67ms
memory: 3484kb

input:

I

output:


result:

ok Correct

Test #213:

score: 60
Accepted
time: 83ms
memory: 3556kb

input:

ʫ

output:


result:

ok Correct

Test #214:

score: 60
Accepted
time: 110ms
memory: 3772kb

input:

k

output:


result:

ok Correct

Test #215:

score: 60
Accepted
time: 54ms
memory: 3796kb

input:


output:


result:

ok Correct

Test #216:

score: 60
Accepted
time: 108ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #217:

score: 60
Accepted
time: 88ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #218:

score: 60
Accepted
time: 95ms
memory: 3536kb

input:

i\x15ꭊ|\x01

output:


result:

ok Correct

Test #219:

score: 60
Accepted
time: 89ms
memory: 3612kb

input:

v

output:


result:

ok Correct

Test #220:

score: 60
Accepted
time: 103ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #221:

score: 60
Accepted
time: 47ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #222:

score: 60
Accepted
time: 85ms
memory: 3780kb

input:


output:


result:

ok Correct

Test #223:

score: 60
Accepted
time: 119ms
memory: 3740kb

input:


output:


result:

ok Correct

Test #224:

score: 60
Accepted
time: 124ms
memory: 3584kb

input:

YR?

output:


result:

ok Correct

Test #225:

score: 60
Accepted
time: 69ms
memory: 3800kb

input:


output:


result:

ok Correct

Test #226:

score: 60
Accepted
time: 6ms
memory: 3804kb

input:


output:


result:

ok Correct

Test #227:

score: 60
Accepted
time: 47ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #228:

score: 60
Accepted
time: 56ms
memory: 3576kb

input:

\x13\x02

output:


result:

ok Correct

Test #229:

score: 60
Accepted
time: 72ms
memory: 3748kb

input:

^\x02

output:


result:

ok Correct

Test #230:

score: 60
Accepted
time: 2ms
memory: 3576kb

input:

\x01

output:


result:

ok Correct

Test #231:

score: 60
Accepted
time: 52ms
memory: 3728kb

input:

[\x02

output:


result:

ok Correct

Test #232:

score: 60
Accepted
time: 0ms
memory: 3596kb

input:

)\x02

output:


result:

ok Correct

Test #233:

score: 60
Accepted
time: 63ms
memory: 3596kb

input:


output:


result:

ok Correct

Test #234:

score: 60
Accepted
time: 61ms
memory: 3468kb

input:


output:


result:

ok Correct

Test #235:

score: 60
Accepted
time: 66ms
memory: 3792kb

input:

!\x02

output:


result:

ok Correct

Test #236:

score: 60
Accepted
time: 18ms
memory: 3588kb

input:

\x02

output:


result:

ok Correct

Test #237:

score: 60
Accepted
time: 47ms
memory: 3792kb

input:

|\x02

output:


result:

ok Correct

Test #238:

score: 60
Accepted
time: 5ms
memory: 3588kb

input:

\x1b\x0e

output:


result:

ok Correct

Test #239:

score: 60
Accepted
time: 4ms
memory: 3588kb

input:

C\x0e

output:


result:

ok Correct

Test #240:

score: 60
Accepted
time: 0ms
memory: 3760kb

input:

c\x0f

output:


result:

ok Correct

Test #241:

score: 60
Accepted
time: 46ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #242:

score: 60
Accepted
time: 6ms
memory: 3508kb

input:

\x06

output:


result:

ok Correct

Test #243:

score: 60
Accepted
time: 54ms
memory: 3576kb

input:

q\x0c

output:


result:

ok Correct

Test #244:

score: 60
Accepted
time: 56ms
memory: 3576kb

input:

!\x11

output:


result:

ok Correct

Test #245:

score: 60
Accepted
time: 95ms
memory: 3592kb

input:

Q

output:


result:

ok Correct

Test #246:

score: 60
Accepted
time: 1ms
memory: 3516kb

input:

\x03

output:


result:

ok Correct

Test #247:

score: 60
Accepted
time: 58ms
memory: 3592kb

input:

6\x04

output:


result:

ok Correct

Test #248:

score: 60
Accepted
time: 56ms
memory: 3800kb

input:


output:


result:

ok Correct

Test #249:

score: 60
Accepted
time: 47ms
memory: 3564kb

input:

\\x11

output:


result:

ok Correct

Test #250:

score: 60
Accepted
time: 44ms
memory: 3592kb

input:


output:


result:

ok Correct

Test #251:

score: 60
Accepted
time: 0ms
memory: 3600kb

input:

n1

output:


result:

ok Correct

Test #252:

score: 60
Accepted
time: 11ms
memory: 3576kb

input:

	T

output:


result:

ok Correct

Test #253:

score: 60
Accepted
time: 0ms
memory: 3532kb

input:

HW

output:


result:

ok Correct

Test #254:

score: 60
Accepted
time: 35ms
memory: 3500kb

input:

>P

output:


result:

ok Correct

Test #255:

score: 60
Accepted
time: 55ms
memory: 3588kb

input:

\x01

output:


result:

ok Correct

Test #256:

score: 60
Accepted
time: 42ms
memory: 3600kb

input:

\x03~

output:


result:

ok Correct

Test #257:

score: 60
Accepted
time: 37ms
memory: 3728kb

input:

.O

output:


result:

ok Correct

Test #258:

score: 60
Accepted
time: 48ms
memory: 3580kb

input:

U\x1d

output:


result:

ok Correct

Test #259:

score: 60
Accepted
time: 80ms
memory: 3572kb

input:

\x18

output:


result:

ok Correct

Test #260:

score: 60
Accepted
time: 48ms
memory: 3532kb

input:


output:


result:

ok Correct

Test #261:

score: 60
Accepted
time: 52ms
memory: 3576kb

input:

\x084

output:


result:

ok Correct

Test #262:

score: 60
Accepted
time: 49ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #263:

score: 60
Accepted
time: 71ms
memory: 3804kb

input:

B\x15

output:


result:

ok Correct

Test #264:

score: 60
Accepted
time: 48ms
memory: 3600kb

input:

\x0e)\x01

output:


result:

ok Correct

Test #265:

score: 60
Accepted
time: 58ms
memory: 3796kb

input:


output:


result:

ok Correct

Test #266:

score: 60
Accepted
time: 83ms
memory: 3728kb

input:


output:


result:

ok Correct

Test #267:

score: 60
Accepted
time: 88ms
memory: 3732kb

input:


output:


result:

ok Correct

Test #268:

score: 60
Accepted
time: 63ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #269:

score: 60
Accepted
time: 72ms
memory: 3508kb

input:

\x02

output:


result:

ok Correct

Test #270:

score: 60
Accepted
time: 60ms
memory: 3732kb

input:


output:


result:

ok Correct

Test #271:

score: 60
Accepted
time: 66ms
memory: 3536kb

input:

h

output:


result:

ok Correct

Test #272:

score: 60
Accepted
time: 54ms
memory: 3536kb

input:

\x04

output:


result:

ok Correct

Test #273:

score: 60
Accepted
time: 53ms
memory: 3804kb

input:


output:


result:

ok Correct

Test #274:

score: 60
Accepted
time: 53ms
memory: 3512kb

input:

XM\x01

output:


result:

ok Correct

Test #275:

score: 60
Accepted
time: 73ms
memory: 3576kb

input:

v

output:


result:

ok Correct

Test #276:

score: 60
Accepted
time: 57ms
memory: 3512kb

input:


output:


result:

ok Correct

Test #277:

score: 60
Accepted
time: 69ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #278:

score: 60
Accepted
time: 58ms
memory: 3584kb

input:

\x11!

output:


result:

ok Correct

Test #279:

score: 60
Accepted
time: 84ms
memory: 3580kb

input:


output:


result:

ok Correct

Test #280:

score: 60
Accepted
time: 49ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #281:

score: 60
Accepted
time: 75ms
memory: 3792kb

input:

٨\x01

output:


result:

ok Correct

Test #282:

score: 60
Accepted
time: 33ms
memory: 3540kb

input:


output:


result:

ok Correct

Test #283:

score: 60
Accepted
time: 67ms
memory: 3580kb

input:

\x13

output:


result:

ok Correct

Test #284:

score: 60
Accepted
time: 71ms
memory: 3764kb

input:

Z3\x06

output:


result:

ok Correct

Test #285:

score: 60
Accepted
time: 45ms
memory: 3512kb

input:


output:


result:

ok Correct

Test #286:

score: 60
Accepted
time: 46ms
memory: 3712kb

input:

k_\x05

output:


result:

ok Correct

Test #287:

score: 60
Accepted
time: 69ms
memory: 3592kb

input:

o

output:


result:

ok Correct

Test #288:

score: 60
Accepted
time: 36ms
memory: 3732kb

input:


output:


result:

ok Correct

Test #289:

score: 60
Accepted
time: 66ms
memory: 3596kb

input:

output:


result:

ok Correct

Test #290:

score: 60
Accepted
time: 46ms
memory: 3728kb

input:


output:


result:

ok Correct

Test #291:

score: 60
Accepted
time: 71ms
memory: 3536kb

input:


output:


result:

ok Correct

Test #292:

score: 60
Accepted
time: 145ms
memory: 3748kb

input:

b

output:


result:

ok Correct

Test #293:

score: 60
Accepted
time: 89ms
memory: 3816kb

input:


output:


result:

ok Correct

Test #294:

score: 60
Accepted
time: 118ms
memory: 3584kb

input:


output:


result:

ok Correct

Test #295:

score: 60
Accepted
time: 77ms
memory: 3820kb

input:


output:


result:

ok Correct

Test #296:

score: 60
Accepted
time: 107ms
memory: 3544kb

input:

.B\x08

output:


result:

ok Correct

Test #297:

score: 60
Accepted
time: 86ms
memory: 3536kb

input:

\x01

output:


result:

ok Correct

Test #298:

score: 60
Accepted
time: 55ms
memory: 3476kb

input:

S\x15

output:


result:

ok Correct

Test #299:

score: 60
Accepted
time: 98ms
memory: 3520kb

input:

†\x05

output:


result:

ok Correct

Test #300:

score: 60
Accepted
time: 125ms
memory: 3604kb

input:

2h\x0e

output:


result:

ok Correct

Test #301:

score: 60
Accepted
time: 91ms
memory: 3552kb

input:


output:


result:

ok Correct

Test #302:

score: 60
Accepted
time: 87ms
memory: 3488kb

input:

\x0f	qh9y

output:


result:

ok Correct

Test #303:

score: 60
Accepted
time: 99ms
memory: 3604kb

input:

[\x1f

output:


result:

ok Correct

Test #304:

score: 60
Accepted
time: 102ms
memory: 3524kb

input:

™Ng)

output:


result:

ok Correct

Test #305:

score: 60
Accepted
time: 43ms
memory: 3732kb

input:

x

output:


result:

ok Correct

Test #306:

score: 60
Accepted
time: 73ms
memory: 3812kb

input:


output:


result:

ok Correct

Test #307:

score: 60
Accepted
time: 104ms
memory: 3804kb

input:


output:


result:

ok Correct

Test #308:

score: 60
Accepted
time: 99ms
memory: 3480kb

input:

\x15

output:


result:

ok Correct

Test #309:

score: 60
Accepted
time: 93ms
memory: 3592kb

input:

'Ψ0

output:


result:

ok Correct

Test #310:

score: 60
Accepted
time: 103ms
memory: 3776kb

input:

\x0f\x19

output:


result:

ok Correct

Test #311:

score: 60
Accepted
time: 98ms
memory: 3736kb

input:

\5

output:


result:

ok Correct

Test #312:

score: 60
Accepted
time: 116ms
memory: 3576kb

input:


output:


result:

ok Correct

Test #313:

score: 60
Accepted
time: 80ms
memory: 3540kb

input:

R

output:


result:

ok Correct

Test #314:

score: 60
Accepted
time: 80ms
memory: 3592kb

input:

\x0b$

output:


result:

ok Correct

Test #315:

score: 60
Accepted
time: 111ms
memory: 3812kb

input:


output:


result:

ok Correct

Test #316:

score: 60
Accepted
time: 56ms
memory: 3480kb

input:


output:


result:

ok Correct

Test #317:

score: 60
Accepted
time: 106ms
memory: 3824kb

input:


output:


result:

ok Correct

Test #318:

score: 60
Accepted
time: 71ms
memory: 3600kb

input:


output:


result:

ok Correct

Test #319:

score: 60
Accepted
time: 88ms
memory: 3744kb

input:


output:


result:

ok Correct

Test #320:

score: 60
Accepted
time: 120ms
memory: 3600kb

input:

.

output:


result:

ok Correct

Test #321:

score: 60
Accepted
time: 78ms
memory: 3576kb

input:

"zDA

output:


result:

ok Correct

Extra Test:

score: 0
Extra Test Passed