Submission #1048542

# Submission time Handle Problem Language Result Execution time Memory
1048542 2024-08-08T08:14:14 Z anton Scissors and Tape (CEOI19_scissors) C++17
0 / 100
13 ms 26560 KB
#include<bits/stdc++.h>

using namespace std;

#define int long long
int N, M, K;


struct Fruit{
    int pos, t, w;
    Fruit(int _pos, int _t, int _w){
        pos = _pos;
        t= _t;
        w =_w;
    }
};

vector<Fruit> fr;
vector<int> anc;
signed main(){
    cin.tie(NULL);
    ios_base::sync_with_stdio(false);
    cin>>N>>M>>K;

    anc.resize(N);
    for(int  i= 1; i<N; i++){
        cin>>anc[i];
        anc[i]--;
    }
    int RES =0;
    for(int i = 0; i<M; i++){
        int v, d, w;
        cin>>v>>d>>w;
        fr.push_back(Fruit(v-1, d, w));
        RES += w;
    }
    cout<<RES<<endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 26560 KB Token parameter [name=op] equals to "224853322135", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 7624 KB Token parameter [name=op] equals to "-60384296838", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Token parameter [name=op] equals to "0", doesn't correspond to pattern "scissors|tape"
2 Halted 0 ms 0 KB -