Submission #921364

# Submission time Handle Problem Language Result Execution time Memory
921364 2024-02-03T18:08:03 Z danikoynov Shortcut (IOI16_shortcut) C++14
Compilation error
0 ms 0 KB
#include <cstdio>
#include <cassert>
#include "shortcut.h"
#include "shortcut.cpp"

int main()
{
    int n, c;
    assert(2 == scanf("%d%d", &n, &c));

    std::vector<int> l(n - 1);
    std::vector<int> d(n);
    for (int i = 0; i < n - 1; i++)
        assert(1 == scanf("%d", &l[i]));
    for (int i = 0; i < n; i++)
        assert(1 == scanf("%d", &d[i]));

    long long t = find_shortcut(n, l, d, c);


    printf("%lld\n", t);

    return 0;
}

/**
4 10
10 20 20
0 40 0 30


9 30
10 10 10 10 10 10 10 10
20 0 30 0 0 40 0 40 0


4 1
2 2 2
1 10 10 1

3 3
1 1
1 1 1


*/

Compilation message

shortcut.cpp:4:10: fatal error: shortcut.cpp: No such file or directory
    4 | #include "shortcut.cpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.