编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#15991 #1065. 被优化掉的Shenchuan Wrong Answer 11 103 ms 1312 K C++ 17 / 1.5 K C192022214900 2024-03-16 14:23:10
显示原始代码
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <unordered_map>
#include <string>
using namespace std;
#define int long long

int n;
const int N = 1e6 + 10;
char s[N];
string s1 = "shenchuan";
/*
const int N = 5e4 + 10;
int n, m, p, c;
int a[N];
int sum[N]; // 前缀和
int res[N];
int mod = 1e+9;
int quick(int shu, int a)
{
        int res = 1;
        while (a)
        {
                if (a & 1)
                {
                        res = (res * shu) % p;
                }
                shu = (shu * shu) % p;
                a >>= 1;
        }
        return res ;
}

int solve(int i)
{
        int k, l, r;
        cin >> k >> l >> r;
        if (k == 0)  //每个数次方
        {
                for (int i = l; i <= r; i++)
                {
                        a[i] = quick(c, a[i]);
                        sum[i] = 0;
                }
                for (int i = 1; i <= n; i++)
                {
                        sum[i] = sum[i-1] + a[i];
                }
                return 1;

        }
        else  //查询
        {
                res[i] = (sum[r] - sum[l - 1])%p;
                return 0;
        }
}
signed main()
{
        cin >> n >> m >> p >> c;
        for (int i = 1; i <= n; i++)
        {
                cin >> a[i];
                sum[i] = sum[i - 1] + a[i];
        }
        int i = 0;
        while (m--)
        {
                if (solve(i) == 0)
                {
                        cout << res[i] << endl;
                        i++;
                }
        }
}
*/

signed main() {
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> s[i];
    }
    for (int i = 0; i < n; i++) {
        if (s[i] == 's') {
            /*
            int a = 1;
            int flag = 1;
            for (int j = i+1; j < 9 + i - 1; j++)
            {
                    if (s[j] == s1[a])
                    {
                            a++;
                    }
                    else
                    {
                            flag = 0;
                            break;
                    }
            }
            */
            cout << i << " ";
        }
    }
}
子任务 #1
Wrong Answer
得分:11
测试点 #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>

用户输出

15 41 76 87 140 172 182 222 261 301 312 324 347 360 368 388 416 440 457 463 481 502 513 519 532 566 570 582 601 625 636 647 658 
<1933 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:4 ms
内存:392 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>

用户输出

11 12 32 44 62 85 100 118 125 133 161 172 189 209 225 229 254 278 295 305 306 310 311 328 346 381 382 387 401 411 423 439 455 47
<2067 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:58 ms
内存:1312 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>

用户输出

0 32 52 85 99 105 141 165 177 191 203 243 258 304 316 328 330 355 361 369 381 405 406 423 449 464 479 490 511 532 543 556 570 57
<391853 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:10 ms
内存:508 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>

用户输出

10 31 35 46 82 105 123 134 160 177 187 211 244 254 257 282 311 319 347 356 376 414 418 427 448 463 481 491 503 505 532 582 592 6
<36473 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:10 ms
内存:448 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>

用户输出

41 49 81 90 113 132 160 204 226 230 242 248 262 294 314 331 337 358 361 383 393 436 446 454 469 475 539 574 595 616 628 665 677 
<36597 bytes omitted>

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(6.in

7
wumnhfo

答案文件(6.out

0

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(7.in

10
pjsusnkior

答案文件(7.out

0

用户输出

2 4 

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(8.in

7
shenchua

答案文件(8.out

0

用户输出

0 

系统信息

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

输入文件(9.in

17
shenchuashenchuan

答案文件(9.out

1
8

用户输出

0 8 

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0