QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#863773#9749. 小凯的省奖之梦xjt05AC ✓475ms5632kbC++237.0kb2025-01-19 22:09:532025-01-19 22:09:54

Judging History

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

  • [2025-01-19 22:09:54]
  • 评测
  • 测评结果:AC
  • 用时:475ms
  • 内存:5632kb
  • [2025-01-19 22:09:53]
  • 提交

answer

#include<iostream>
#include<map>
#include<vector>
#include<algorithm>
#include <unordered_map>
#define ll          int 
#define lowbit(x) (x & -x)
#define endl "\n"//                           交互题记得删除
using namespace std;
struct s
{
    string name;
    ll a[4];
    ll z1 = 0;//综测
    ll z2 = 0;
    ll b[4];
    ll sum = 0;
}p[25000];
bool cmp1(s x, s y)
{
    if (x.z1 != y.z1)
        return x.z1 > y.z1;
    else if (x.a[1] != y.a[1])
        return x.a[1] > y.a[1];
    else return x.name < y.name;
}
bool cmp2(s x, s y)
{
    if (x.z2 != y.z2)
        return x.z2 > y.z2;
    else if (x.b[1] != y.b[1])
        return x.b[1] > y.b[1];
    else return x.name < y.name;
}
bool cmpz2(s x, s y)
{
    return x.b[1] > y.b[1];
}
bool cmpz1(s x, s y)
{
    return x.a[1] > y.a[1];
}
bool cp(s x, s y)
{
    if (x.sum != y.sum)
        return x.sum > y.sum;
    else if (x.z1 + x.z2 != y.z1 + y.z2)
        return x.z1 + x.z2 > y.z1 + y.z2;
    else if (x.a[1] + x.b[1] != y.a[1] + y.b[1])
        return x.a[1] + x.b[1] > y.b[1] + y.a[1];
    else return x.name < y.name;
}
inline int read() {
    int x = 0, f = 0;
    char c = getchar();
    while (c > 57 || c < 48) {
        f |= c == 45;
        c = getchar();
    }
    while (c <= 57 && c >= 48) {
        x = (x << 3) + (x << 1) + c - 48;
        c = getchar();
    }
    return f ? -x : x;
}
int main()
{
   // fio();
    ll t;
    t = 1;
    while (t--)
    {
        ll n;
        n=read();
       ll l1 = (ll)(double(n) * 0.15);
        ll l2 = (ll)(double(n) * 0.25);
        ll l3 = (ll)(double(n) * 0.35);
        ll u1;
        ll u2;
        ll u3;
        ll d1, d2;
        ll u4;
        for (ll i = 1; i <= n; i++)//智,德,体
        {
            string f;
            cin >> f;
            p[i].name = f;
            ll x;
            for (ll j = 1; j <= 3; j++)
            {
                x=read();
                p[i].a[j] = x;
                p[i].z1 += x;
            }
            for (ll j = 1; j <= 3; j++)
            {
                x=read();
                p[i].b[j] = x;
                p[i].z2 += x;
            }
            if (p[i].name == "crazyzhk")
                u1 = 100 - p[i].a[1], u2 = 100 - p[i].b[1], u3 = p[i].a[1], u4 = p[i].b[1], d1 = p[i].z1, d2 = p[i].z2;
        }
        ll f, q, m;
        m=read();
        f=read();
        q=read();
        ll ans = 4e8;
        vector<ll>g;
        ll of = 0;
        for (ll i = 0; i <=u1; i++)
        {
           ll t1=0,t2=u2;
           while(t1<t2)
           {
                 ll j=(t1+t2)>>1;
                ll pd=0;
                g.clear();
                ll cnt = f * i + q * j;
                for (ll z = 1; z <= n; z++)
                {
                    if (p[z].name == "crazyzhk")
                    {
                        p[z].z1 = d1 + i;
                        p[z].z2 = d2 + j;
                        p[z].a[1] = u3 + i, p[z].b[1] = u4 + j;
                        break;
                    }
                }
                //15 10 5
              //  sort(p+1,p+1+n,cmp1);
                for (ll z = 1; z <= n; z++)
                {
                    p[z].sum = 0;
                }
                sort(p + 1, p + 1 + n, cmpz1);
                for (ll z = 1; z <= n; z++)
                {
                   
                    g.push_back(p[z].a[1]);
                }
                ll r1 = (ll)((double)g.size() * 0.25);
                ll r2 = (ll)((double)g.size() * 0.45);
                ll r3 = (ll)((double)g.size() * 0.75);
                ll cn1 = l1, cn2 = l2, cn3 = l3;
                ll cs = 0;
                ll k1, k2, k3;
                for (auto j : g)
                {
                    cs++;
                    if (cs <= r1)
                    {
                        k1 = j;
                    }
                    else if (cs <= r2)
                    {
                        k2 = j;
                    }
                    else if (cs <= r3)
                    {
                        k3 = j;
                    }
                }
                sort(p + 1, p + 1 + n, cmp1);
                for (ll z = 1; z <= n; z++)
                {
                    if (p[z].a[1] >= k1 && cn1 > 0)
                    {
                        cn1--;
                        p[z].sum += 15;
                    }
                    else if (p[z].a[1] >= k2 && cn2 > 0)
                    {
                        cn2--;
                        p[z].sum += 10;
                    }
                    else if (p[z].a[1] >= k3 && cn3 > 0)
                    {
                        cn3--;
                        p[z].sum += 5;
                    }
                }
                /////////////////////////////////
                g.clear();
                sort(p + 1, p + 1 + n, cmpz2);
                for (ll z = 1; z <= n; z++)
                {
                   
                  
                        g.push_back(p[z].b[1]);
                }
                r1 = (ll)((double)g.size() * 0.25);
                r2 = (ll)((double)g.size() * 0.45);
                r3 = (ll)((double)g.size() * 0.75);
                cn1 = l1, cn2 = l2, cn3 = l3;
                cs = 0;
                for (auto j : g)
                {
                    cs++;
                    if (cs <= r1)
                    {
                        k1 = j;
                    }
                    else if (cs <= r2)
                    {
                        k2 = j;
                    }
                    else if (cs <= r3)
                    {
                        k3 = j;
                    }
                }
                sort(p + 1, p + 1 + n, cmp2);
                for (ll z = 1; z <= n; z++)
                {
                    if (p[z].b[1] >= k1 && cn1 > 0)
                    {
                        cn1--;
                        p[z].sum += 15;
                    }
                    else if (p[z].b[1] >= k2 && cn2 > 0)
                    {
                        cn2--;
                        p[z].sum += 10;
                    }
                    else if (p[z].b[1] >= k3 && cn3 > 0)
                    {
                        cn3--;
                        p[z].sum += 5;
                    }
                }
                sort(p + 1, p + 1 + n, cp);
                cs = 0;
                for (ll z= 1; z <= n; z++)
                {
                    cs++;
                    if (p[z].name == "crazyzhk" && cs <= m)
                    {
                        pd=1;
                        ans = min(ans, cnt);
                    }
                }
                if(pd==1)
                t2=j;
                else t1=j+1;
                
            }
        }
        if (ans == 4e8)
            cout << "Surely next time" << endl;
        else cout << ans << endl;
    }
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

8
easycxk 94 12 77 74 70 55
hardzhk 80 80 95 96 20 60
crazyzhk 40 49 36 50 50 74
mike 50 98 93 36 90 23
amy 50 81 59 53 100 50
tom 50 71 69 53 90 60
john 65 73 41 60 34 69
jyy 12 26 29 29 53 50
2 44 14

output:

1494

result:

ok single line: '1494'

Test #2:

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

input:

7
a 30 61 27 94 20 70
b 64 57 68 8 43 34
c 97 66 94 33 79 42
crazyzhk 59 6 29 55 43 53
e 65 78 61 71 31 2
f 62 25 95 60 52 44
g 60 90 30 62 42 54
2 72 22

output:

858

result:

ok single line: '858'

Test #3:

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

input:

8
amy 94 12 77 100 70 55
hardzhk 90 80 95 96 20 60
john 90 39 16 70 50 74
mike 100 98 93 90 90 23
easycxk 70 81 59 73 100 50
ydzlhzs 100 85 89 100 90 60
crazyzhk 65 13 11 60 14 19
jyy 92 26 29 69 53 80
2 44 14

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #4:

score: 0
Accepted
time: 125ms
memory: 5632kb

input:

188
w 81 4 91 44 6 8
apbyloihyqjcrekq 73 30 30 39 56 4
fbrzsl 95 54 54 82 41 28
vkngftis 72 22 22 47 43 33
kehgasflquvcjed 43 68 53 5 26 49
efzjky 55 59 17 100 5 14
czockbgeibdncwekuwrq 11 61 71 21 18 21
eselhjadzufeonshb 96 5 91 15 67 14
mrvwolins 17 99 70 94 66 72
ona 43 27 26 63 54 19
trtdyfunitu...

output:

2455

result:

ok single line: '2455'

Test #5:

score: 0
Accepted
time: 164ms
memory: 5632kb

input:

232
uqyuwsvjo 85 50 77 12 95 18
hsnouhhv 66 91 49 6 80 81
oihpvu 34 70 90 44 86 12
lmoorhpassjlgl 58 12 83 72 62 88
nwkpy 0 23 67 63 62 7
jge 79 6 18 49 1 87
cwcleucesshipsxw 88 57 56 80 45 50
uryopxfrbwfgkvuanzz 48 55 66 54 65 88
rsfuwcomkf 33 44 53 23 38 66
zcuonzdetqekrdcueie 86 31 80 19 91 70
cw...

output:

237

result:

ok single line: '237'

Test #6:

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

input:

6
crazyzhk 70 95 89 80 96 98
wwfrk 95 95 89 90 96 98
uzlcb 95 97 92 92 90 87
dfkzf 80 95 89 90 96 98
xiedz 95 95 89 90 96 98
aylzw 80 95 89 90 96 98
3 59 49

output:

539

result:

ok single line: '539'

Test #7:

score: 0
Accepted
time: 475ms
memory: 5632kb

input:

403
pesdaxzqzphhnmx 67 43 96 68 22 0
wcwrcduyjejilq 26 3 14 59 53 29
kleruyyey 87 44 81 73 40 10
rxhviwr 70 92 62 10 58 1
terblhbqhflab 33 26 90 7 70 51
icszh 4 78 11 17 27 3
ujuel 48 77 27 39 65 48
cgxqvk 7 43 64 87 91 43
fuevhkh 89 3 38 4 100 66
biwcpy 78 9 66 25 96 78
nuetocaoa 27 8 61 85 36 46
j...

output:

4225

result:

ok single line: '4225'

Test #8:

score: 0
Accepted
time: 172ms
memory: 5632kb

input:

500
blsinmiukdcubmbbmd 65 83 62 48 33 41
upidfxoodvvfkwhku 75 38 53 62 2 10
gwkjxx 59 59 31 93 66 28
ljwvqwkftuu 29 77 92 3 59 93
zsmrdrkrzjjj 88 22 0 67 19 29
urmcmgypnhbtawemja 70 9 8 11 94 99
qbbayw 49 17 7 41 49 96
oeagkxcazurbwoikc 73 28 74 6 7 35
avnhozifhrmwwuhgyyy 32 69 93 35 17 36
k 39 49 3...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #9:

score: 0
Accepted
time: 299ms
memory: 5632kb

input:

500
okpudek 4 98 34 81 33 41
kvzfianquz 66 63 22 94 65 60
igcvzmrdfmgqwky 65 37 34 16 11 14
hsydoz 64 46 77 22 64 65
rattm 10 92 19 51 49 22
eodsr 0 55 21 45 82 61
kaai 11 0 32 100 79 11
esgetiyqkrkxcvgnyl 66 98 61 9 6 18
dmwwvcgzvknp 27 35 75 18 8 40
wckvcyr 86 71 39 96 93 13
dsinrjxbvmzqo 0 51 55 ...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #10:

score: 0
Accepted
time: 256ms
memory: 5504kb

input:

499
uigiy 52 59 76 77 29 12
giakf 67 76 38 13 17 74
rdijh 59 100 7 70 29 34
oohhr 43 71 27 56 36 41
hxceh 22 85 81 64 91 19
vrffv 46 62 73 41 48 10
mfwrc 50 61 38 72 0 43
glwpd 49 76 10 15 46 69
xkxma 54 30 71 62 48 21
tjqrg 14 85 90 86 72 13
evjnc 89 45 2 73 89 10
ecxxh 13 74 3 51 59 36
lnvgy 90 16...

output:

0

result:

ok single line: '0'

Test #11:

score: 0
Accepted
time: 115ms
memory: 5632kb

input:

494
uwkzz 80 81 84 90 96 100
troap 81 82 88 81 89 100
uudpl 89 84 80 85 86 85
tazgo 89 84 80 85 86 85
bpikj 94 93 84 91 89 84
jvqif 92 97 87 87 93 96
koaiw 86 89 99 93 81 88
bowhr 99 82 81 83 84 88
ntawu 82 85 94 83 93 96
uqnmb 98 87 95 95 84 92
gurdr 81 86 88 98 94 98
ruznv 84 94 91 87 90 83
aqenq ...

output:

0

result:

ok single line: '0'

Test #12:

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

input:

482
mffyq 86 94 92 90 93 87
dovcu 84 97 81 99 87 99
mxzih 83 97 96 90 94 94
ispys 100 98 93 82 83 80
etlnq 97 95 91 99 82 89
wqjeb 99 84 94 80 98 81
hjgxa 97 83 90 85 89 88
iuqwe 91 93 82 100 95 80
jhcgr 82 93 91 81 86 97
kazjs 86 96 93 94 99 86
dspfe 89 85 95 95 93 86
xmbbd 100 89 80 95 93 85
nuzlm...

output:

1061

result:

ok single line: '1061'

Test #13:

score: 0
Accepted
time: 121ms
memory: 5632kb

input:

487
dvwuy 100 86 100 82 98 97
dkfvx 93 87 97 94 80 92
zhhnx 88 85 86 96 80 96
zrofz 92 81 91 82 87 81
hbuwd 83 98 80 91 99 81
oshdk 94 87 83 84 98 83
vqjxo 100 82 93 96 86 80
yxssf 86 91 84 92 89 84
ppdvc 81 99 80 85 81 83
oxbjr 84 87 81 83 95 90
ohehy 86 95 95 94 91 84
iaeps 85 86 97 95 96 93
opcax...

output:

480

result:

ok single line: '480'

Test #14:

score: 0
Accepted
time: 164ms
memory: 5632kb

input:

480
myaoi 78 55 55 78 67 77
tnxre 77 52 52 67 58 71
lsksv 78 76 56 66 59 64
rbjjf 51 63 71 56 70 62
vcurl 67 54 55 79 51 63
mcsbu 69 66 74 62 50 73
gamfu 70 54 58 60 66 58
cyytm 75 53 70 71 65 50
zpcxd 59 68 56 59 63 77
oxbrj 50 68 70 51 66 65
xhrqt 67 63 74 70 60 64
pafpn 65 50 78 56 78 57
cifzu 64...

output:

464

result:

ok single line: '464'

Test #15:

score: 0
Accepted
time: 296ms
memory: 5632kb

input:

480
pesr 58 66 55 62 60 67
ffysslckzlanwivxgn 71 64 78 68 75 71
frfzdagxkjbqvtbcllyo 66 63 63 66 65 52
taujzoihuiai 76 63 66 61 74 54
rljonyqvcxzuejqdr 57 68 59 78 52 54
xcaigk 74 78 59 65 66 75
f 60 67 62 57 73 67
remrggnbjujjuxi 75 69 62 74 76 71
qxujhticbohkwefwgr 61 59 50 71 71 59
wvoacdocnnzhfa...

output:

1494

result:

ok single line: '1494'

Test #16:

score: 0
Accepted
time: 246ms
memory: 5632kb

input:

491
qdpsxpikiqnu 58 74 62 67 59 66
lcxp 77 78 72 61 73 53
kggkcybdfxg 55 53 78 71 70 63
rmtmarpk 69 54 78 75 76 76
aquwsz 77 58 67 67 59 54
tm 76 68 61 70 60 72
vrxqzqvonjftjw 59 71 55 57 50 54
ob 77 79 51 75 51 65
fl 79 61 52 71 75 60
feofk 69 75 60 75 59 56
qrajilycby 54 64 64 55 75 59
ojaatuapzcs...

output:

2490

result:

ok single line: '2490'

Test #17:

score: 0
Accepted
time: 202ms
memory: 5632kb

input:

490
hyfmtfwfol 51 64 79 52 78 79
ykkcgd 70 52 56 54 71 60
jdoxvctqshbmy 51 78 58 55 56 69
nhesnugruwbaj 75 65 70 79 56 60
kad 77 62 56 57 71 60
jvyxhugrvavllwffcr 55 79 53 78 76 50
qjsngr 59 74 54 73 68 59
lxkrcailpqq 50 75 53 64 52 60
swjtibdommrligekjmd 59 60 66 55 63 56
eerpmsuv 71 71 59 76 50 65...

output:

430

result:

ok single line: '430'

Test #18:

score: 0
Accepted
time: 305ms
memory: 5504kb

input:

496
qjlqkfifysjbc 77 62 62 53 74 68
ca 53 55 56 59 76 69
uoqooyftmnzcb 75 51 66 70 59 78
vljqndkbhbienfai 74 71 75 63 67 78
tykrpnbz 58 79 53 59 74 52
jquvmufcbkuktqj 59 79 70 54 75 77
jplpucrcjo 76 72 61 57 64 54
hmp 71 66 78 73 66 59
lmjuvwple 61 64 77 51 53 61
undcqzmuhlepqzxinu 66 67 64 60 79 50...

output:

1112

result:

ok single line: '1112'

Test #19:

score: 0
Accepted
time: 307ms
memory: 5632kb

input:

481
iri 54 51 50 54 66 53
baincnkoirnmvfnkjg 58 70 51 63 69 74
mn 64 79 78 76 55 77
ddsdusiljysfbl 51 73 76 66 77 55
bedgthcdurrxeg 69 51 65 70 62 64
lvdimqwrshreoxy 77 54 68 74 78 71
slracxkqotuwryk 57 51 52 62 70 76
odrfybnsjnrlpawileht 53 58 62 72 67 63
eavlqwqpzsaqyqn 60 55 78 72 78 61
bdgqdtlvl...

output:

294

result:

ok single line: '294'

Test #20:

score: 0
Accepted
time: 289ms
memory: 5504kb

input:

489
lmnirc 66 75 78 76 54 61
ptctdqzlnf 78 72 68 62 64 55
tn 51 53 69 63 54 65
rboq 54 79 72 69 51 66
lkeuv 56 62 70 55 77 69
yozos 55 53 64 56 69 77
etvstggytfrsrd 50 69 69 59 65 57
wyekjqwot 66 51 66 65 75 63
a 55 53 73 64 75 50
owxmvqtrsbdcdvpotb 66 67 67 79 65 62
nandluzlfvyqrl 67 62 67 61 72 76...

output:

333

result:

ok single line: '333'

Test #21:

score: 0
Accepted
time: 288ms
memory: 5632kb

input:

499
qx 54 74 55 58 65 63
uaeqq 58 52 61 66 61 64
xvonylcjmeupdkqnn 63 77 56 78 78 61
bcx 63 71 50 56 62 61
q 63 50 64 75 50 57
txwg 58 72 54 55 65 66
ypfmapaam 69 76 78 77 60 69
xxsmxpbcuenthrofw 65 72 69 64 53 62
bbbpowcjgkcp 72 69 54 69 51 57
kkkdniemafnvt 77 61 54 55 62 62
xnuamvhcof 70 71 71 71 ...

output:

42

result:

ok single line: '42'

Test #22:

score: 0
Accepted
time: 143ms
memory: 5632kb

input:

494
lvbdc 86 92 93 88 98 81
ldmze 99 81 91 90 84 98
hgklx 82 88 93 89 96 81
qwece 86 93 88 92 99 92
cvwim 90 99 83 90 99 86
rcyox 88 93 95 85 81 88
irelk 97 99 93 82 80 87
gmhhy 98 95 86 97 96 98
ojtwv 93 85 97 91 90 95
fqtmn 89 91 100 100 93 93
zvcla 97 97 81 85 85 97
rufle 87 96 85 85 87 85
mvpdg ...

output:

882

result:

ok single line: '882'

Test #23:

score: 0
Accepted
time: 83ms
memory: 5504kb

input:

485
egbcq 93 84 92 95 94 85
gsfuc 84 83 98 98 83 100
lsopg 89 85 97 94 90 80
prija 93 84 93 86 88 84
zxblz 98 88 94 92 100 95
dfdql 96 91 85 97 89 93
opmov 85 99 84 82 89 93
sentv 87 97 90 87 89 94
zwqno 80 81 87 84 96 83
ielzz 84 89 84 97 80 98
gzfax 98 93 87 100 80 89
lpycw 100 89 91 88 81 88
aocw...

output:

0

result:

ok single line: '0'

Test #24:

score: 0
Accepted
time: 34ms
memory: 5504kb

input:

484
nypip 82 83 86 90 82 97
hxsyn 94 85 94 100 81 100
vgcvk 80 90 97 95 92 100
lrxve 90 99 95 91 100 92
ibsgm 99 89 80 94 81 96
sexgy 82 94 88 97 88 81
rmxnk 86 96 89 83 100 91
ovxpr 98 84 81 83 86 83
xdcla 88 95 86 99 82 92
oggnn 95 82 93 99 80 90
jzxls 84 95 80 91 94 90
vtzgy 83 93 90 89 88 85
iwx...

output:

835

result:

ok single line: '835'

Test #25:

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

input:

492
pggpr 83 95 86 99 83 88
edgfp 81 83 99 93 95 94
yigoy 94 84 90 86 95 85
dhhho 87 92 100 94 96 97
mukig 91 99 84 98 81 83
aukpq 92 93 98 94 100 87
jzxpz 86 91 87 97 100 82
rnrgp 94 87 82 86 88 83
gmewa 93 83 90 80 93 82
qkfev 87 99 99 89 90 94
xmypk 94 94 98 95 91 95
wvmba 98 96 96 98 82 100
xxxq...

output:

328

result:

ok single line: '328'

Test #26:

score: 0
Accepted
time: 95ms
memory: 5504kb

input:

489
reiay 100 94 92 93 94 81
vnmhu 84 93 85 91 98 86
lkhjr 82 93 84 100 92 93
kktno 92 89 88 83 93 80
szrsv 81 97 88 85 94 97
mscwd 98 88 80 88 96 96
pkapk 93 89 88 100 81 98
kwnmx 86 100 98 92 96 92
yetng 82 84 97 95 87 98
fxrda 81 86 98 100 87 89
bpnxi 94 87 94 90 87 81
kcreq 85 99 82 93 82 81
zog...

output:

1505

result:

ok single line: '1505'

Test #27:

score: 0
Accepted
time: 121ms
memory: 5632kb

input:

492
uzdro 98 99 88 98 84 82
hhthc 86 97 98 100 86 88
kcmel 98 80 95 91 87 93
drhat 92 87 95 81 91 100
tsbeg 97 82 86 84 89 96
pwkia 84 81 82 98 88 80
rcoqt 81 81 81 81 96 97
aotoa 84 99 92 90 91 88
lctwg 88 92 83 87 81 96
rrozv 87 87 80 91 87 98
bbqlt 99 96 90 84 87 88
zojmt 100 99 83 94 88 97
ttirw...

output:

105

result:

ok single line: '105'

Test #28:

score: 0
Accepted
time: 101ms
memory: 5504kb

input:

483
okjhb 95 81 83 93 89 97
xyqrj 97 93 98 97 96 81
mpljl 81 83 92 92 86 82
hldle 99 90 82 83 99 94
mbqbn 97 85 82 90 97 91
gnuaw 81 85 81 88 99 100
xwyen 83 99 98 83 94 87
dxome 87 93 86 85 94 92
juagv 84 89 95 99 85 82
ijvas 88 88 94 99 84 97
zojrs 80 80 95 89 100 100
cecak 92 93 95 88 83 89
cpgwm...

output:

2216

result:

ok single line: '2216'

Test #29:

score: 0
Accepted
time: 118ms
memory: 5504kb

input:

497
dqchl 81 88 95 85 84 100
rrttq 80 92 98 96 94 89
nlikx 80 94 80 84 81 93
emfjt 98 99 89 83 83 88
glyjy 92 86 98 95 93 93
bhmwh 93 91 81 88 82 90
mjnlq 93 87 96 88 94 84
oyped 100 86 81 91 92 100
tkzab 86 95 85 91 95 94
tvifc 94 97 91 84 88 83
pgflb 100 93 87 88 80 85
cguef 100 94 87 83 97 98
gxy...

output:

2615

result:

ok single line: '2615'

Test #30:

score: 0
Accepted
time: 65ms
memory: 5504kb

input:

495
omcpl 80 80 91 95 87 90
nrery 93 87 92 88 89 94
uhuzp 100 93 80 88 83 88
eibyp 96 92 84 91 81 99
hyhxf 87 87 94 89 96 100
khykz 97 97 99 97 87 94
erqkt 91 95 89 81 89 97
zfwrg 97 81 99 92 81 97
zetvm 98 88 98 90 85 81
lufqr 97 81 86 91 91 90
bixbu 95 93 85 86 83 83
ugube 92 96 87 90 94 87
mavqh ...

output:

1636

result:

ok single line: '1636'

Test #31:

score: 0
Accepted
time: 109ms
memory: 5632kb

input:

495
iowub 86 84 99 97 89 98
avqpc 96 91 91 92 90 89
uvytc 98 89 89 96 89 95
ugpwc 95 99 97 99 96 93
glhtk 80 81 83 92 92 89
gxlxs 84 94 91 82 94 90
cexbb 87 97 83 81 94 82
ngiai 87 100 86 84 98 92
emdav 90 99 98 85 84 90
xczjb 95 98 86 86 100 84
jxvdm 90 93 80 97 89 87
tivph 99 85 98 93 97 84
jnlfa ...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #32:

score: 0
Accepted
time: 79ms
memory: 5632kb

input:

491
odnjm 97 92 98 81 94 96
dwvpm 85 80 98 80 85 98
iyuyv 99 92 96 95 86 85
kefnk 97 90 96 89 91 90
cqzrf 86 91 94 90 96 97
otteq 90 84 87 89 80 92
dnkiu 98 97 94 83 93 82
nyntz 93 93 99 84 88 90
prndd 82 96 81 83 96 86
lbhho 87 99 83 82 100 96
dmcwp 88 84 93 94 86 100
wlbql 97 83 91 81 89 91
kfuin ...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #33:

score: 0
Accepted
time: 63ms
memory: 5504kb

input:

485
viquy 82 92 86 90 86 94
bqlyn 98 99 84 92 93 91
jhzkh 99 89 84 81 84 99
dmuve 81 93 83 82 84 93
qbzdl 93 88 84 95 80 83
pcfhi 96 80 91 82 93 84
afngn 86 84 93 95 90 97
vimjc 98 100 86 85 94 83
nmruk 90 100 99 87 90 97
yyrjn 87 88 98 83 81 80
goadb 88 91 100 85 84 80
accug 100 96 86 89 88 95
thwr...

output:

457

result:

ok single line: '457'

Test #34:

score: 0
Accepted
time: 68ms
memory: 5504kb

input:

489
ywsgf 99 92 98 97 95 89
iceya 94 92 88 89 84 97
gufjf 98 91 80 88 100 95
zkqzp 82 96 93 81 82 92
mdnfi 95 92 96 96 93 95
ldfse 87 89 80 85 87 84
pbyst 90 92 98 82 95 90
gonmi 86 80 94 85 88 98
nesgn 84 100 88 95 95 83
nylmc 86 89 96 82 86 86
chpxn 82 89 92 92 90 80
xsvis 96 82 83 92 97 82
uzajr ...

output:

1273

result:

ok single line: '1273'

Test #35:

score: 0
Accepted
time: 69ms
memory: 5504kb

input:

489
ywsgf 99 92 98 97 95 89
iceya 94 92 88 89 84 97
gufjf 98 91 80 88 100 95
zkqzp 82 96 93 81 82 92
mdnfi 95 92 96 96 93 95
ldfse 87 89 80 85 87 84
pbyst 90 92 98 82 95 90
gonmi 86 80 94 85 88 98
nesgn 84 100 88 95 95 83
nylmc 86 89 96 82 86 86
chpxn 82 89 92 92 90 80
xsvis 96 82 83 92 97 82
uzajr ...

output:

0

result:

ok single line: '0'

Test #36:

score: 0
Accepted
time: 59ms
memory: 5504kb

input:

489
ywsgf 99 92 98 97 95 89
iceya 94 92 88 89 84 97
gufjf 98 91 80 88 100 95
zkqzp 82 96 93 81 82 92
mdnfi 95 92 96 96 93 95
ldfse 87 89 80 85 87 84
pbyst 90 92 98 82 95 90
gonmi 86 80 94 85 88 98
nesgn 84 100 88 95 95 83
nylmc 86 89 96 82 86 86
chpxn 82 89 92 92 90 80
xsvis 96 82 83 92 97 82
uzajr ...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #37:

score: 0
Accepted
time: 107ms
memory: 5632kb

input:

493
vfwxa 88 80 87 94 100 93
mtvsl 96 95 81 90 82 93
fhtwy 84 94 98 98 94 83
uqjpa 80 97 93 94 87 87
akumk 83 85 98 91 87 84
uahkz 82 82 99 87 84 89
tbkno 95 87 93 99 84 86
qsuxs 91 91 95 96 93 96
zwzvg 95 83 100 92 82 91
gclhd 99 86 81 82 84 100
kekhd 81 94 91 88 89 80
cxaip 96 91 92 83 91 86
yklkz...

output:

Surely next time

result:

ok single line: 'Surely next time'

Test #38:

score: 0
Accepted
time: 69ms
memory: 5504kb

input:

482
vwldv 84 94 93 88 99 87
igkpi 89 91 80 97 81 87
viyll 82 88 89 84 87 88
glicc 94 100 98 87 94 87
ggxmh 85 84 97 80 95 98
zrlnw 93 87 92 83 80 94
dchhc 97 85 91 97 91 81
bssir 85 81 100 92 87 86
ildpj 90 96 96 88 86 86
ssgzg 97 89 87 90 97 96
cfwdo 91 100 100 89 83 100
prjza 89 99 92 84 85 99
uud...

output:

737

result:

ok single line: '737'

Extra Test:

score: 0
Extra Test Passed