编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#15832 #1065. 被优化掉的Shenchuan Wrong Answer 44 54 ms 1564 K C++ 17 / 827 B 192024211977 2024-03-16 13:49:44
显示原始代码
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
#define if0(x) for (int i = 0; i < x; i++)

#define jf0(x) for (int j = 0; j < x; j++)

#define if1(x) for (int i = 1; i <= x; i++)

#define jf1(x) for (int j = 1; j <= x; j++)


void solve() {
    int n, ans;
    string sc = "shenchuan";
    vector<int> ans2;
    string str;
    cin >> n;
    cin >> str;
    int i = 0;
    while (i <= n - 9) {
        string tmp = str.substr(i, 9);
        if (tmp == sc) {
            ans++;
            ans2.push_back(i);
            i += 9;
        }
        i++;
    }
    cout << ans2.size() << endl;
    if0(ans2.size()) cout << ans2[i] << " ";
    return;
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t = 1;
    while (t--) {
        solve();
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:44
测试点 #1
Wrong Answer
得分:0
用时:4 ms
内存:324 KiB

输入文件(1.in

7542
ibmvpqolwmyepkgsreliijtpnpvuyqdjgxhtfpttishenchuanyyclupkqpnrajhfqfmgahayaitshenchuanhdshenchu
<7448 bytes omitted>

答案文件(1.out

200
41 76 87 140 172 182 222 312 347 416 440 481 502 519 532 582 601 658 717 744 804 834 863 936 96
<877 bytes omitted>

用户输出

193
41 76 87 140 172 182 222 312 347 416 440 481 502 519 532 582 601 658 717 744 804 834 863 936 967 1025 1041 1056 1084 1121 11
<813 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:4 ms
内存:324 KiB

输入文件(2.in

7561
vdtldccehtcsshenchuanirqbgwtctndsbdxmbdpkumyshenchuaniiummbmovshenchuanlqhnqeowfxgjtmshenchuan
<7467 bytes omitted>

答案文件(2.out

196
12 44 62 85 100 133 172 189 209 229 295 346 387 401 423 439 455 483 496 589 609 682 717 813 937
<856 bytes omitted>

用户输出

192
12 44 62 85 100 133 172 189 209 229 295 346 387 401 423 439 455 483 496 589 609 682 717 813 937 1031 1100 1124 1160 1171 121
<807 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:19 ms
内存:1564 KiB

输入文件(3.in

1000000
shenchuanxdufyijxqtgcxgilcytaiapshenchuanixnxkwpyvrjshenchuanjnvxrwkfutwwqyrrqcroucnoshench
<999909 bytes omitted>

答案文件(3.out

26432
0 32 52 85 141 165 191 203 330 369 381 406 449 464 479 511 543 556 570 590 613 659 684 800 82
<181976 bytes omitted>

用户输出

25585
0 32 52 85 141 165 191 203 330 369 381 406 449 464 479 511 543 556 570 590 613 659 684 800 823 835 860 901 952 1026 1051 1
<176103 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:5 ms
内存:564 KiB

输入文件(4.in

107616
arnvopvilashenchuanuhairrqcnvipslaysruwpvovxkmshenchuaniwjyfkklcixbdomgmolqdwpcqnxshenchuand
<107524 bytes omitted>

答案文件(4.out

2889
10 46 82 105 160 187 211 257 282 319 347 356 376 463 532 582 592 659 695 814 830 889 924 994 1
<17184 bytes omitted>

用户输出

2802
10 46 82 105 160 187 211 257 282 319 347 376 463 532 582 592 659 695 814 830 889 924 994 1042 1067 1106 1143 1161 1182 1197
<16639 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:5 ms
内存:564 KiB

输入文件(5.in

107635
gmtmbbcbuhugvtxctjfaxhwyehwurkvwjbhrxfjpvsmuqhytyshkyipvyarhtqnctjaldxfqwimnnbopnshenchuansh
<107543 bytes omitted>

答案文件(5.out

2914
81 90 113 132 160 248 337 393 436 454 539 616 628 687 700 723 749 795 829 864 897 908 927 938 
<17304 bytes omitted>

用户输出

2821
81 113 132 160 248 337 393 436 454 539 616 628 687 700 723 749 795 829 864 897 908 927 938 994 1148 1192 1205 1244 1266 129
<16723 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:4 ms
内存:368 KiB

输入文件(6.in

7
wumnhfo

答案文件(6.out

0

用户输出

0

系统信息

Exited with return code 0
测试点 #7
Accepted
得分:100
用时:4 ms
内存:412 KiB

输入文件(7.in

10
pjsusnkior

答案文件(7.out

0

用户输出

0

系统信息

Exited with return code 0
测试点 #8
Accepted
得分:100
用时:4 ms
内存:412 KiB

输入文件(8.in

7
shenchua

答案文件(8.out

0

用户输出

0

系统信息

Exited with return code 0
测试点 #9
Accepted
得分:100
用时:5 ms
内存:324 KiB

输入文件(9.in

17
shenchuashenchuan

答案文件(9.out

1
8

用户输出

1
8 

系统信息

Exited with return code 0