//C++
#include <iostream>
#include <vector>
using namespace std;
int main(){
    vector<long long> ai;
    vector<long long> test;
    int a,b;
    cin >> a;
    for(int i = 0;i < a;i++){
        cin >> b;
        ai.push_back(b);
    }
    for(int i = 1;i < a;i++){
        test.clear();
        for(int j = 0;j < ai.size() - 1;j++){
            test.push_back(ai[j] * ai[j + 1]);
        }
        ai.assign(test.begin(),test.end());//see STL
    }
    cout << ai[0];
    return 0;
}

帮我看看哪里错了,时间超限+答案错误+被取消😕

2 条评论

  • @ 2024-7-12 16:18:26

    What? Undifined and Twingy delete my two posts...I don't understand...

    • @ 2024-8-16 13:00:23

      Because they think your posts are meaningless.

  • @ 2024-7-11 22:20:00

    说话

    站长更不能潜水

    • 1

    信息

    ID
    87
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    117
    已通过
    44
    上传者