| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1163235 | GoBananas69 | Stove (JOI18_stove) | C++20 | 0 ms | 324 KiB | 
#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
using namespace std;
typedef long long ll;
int main() {
    int n, k;
    cin >> n >> k;
    vector<int> t(n);
    for (int &i: t) cin >> i;
    if (k == 1) cout << t.back() - t.front() + 1;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
