Submission #1098668

# Submission time Handle Problem Language Result Execution time Memory
1098668 2024-10-09T16:28:58 Z VMaksimoski008 Airplane (NOI23_airplane) C++17
0 / 100
23 ms 2008 KB
#include <bits/stdc++.h>
#define ar array
#define int long long

using namespace std;

using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;

const int mod = 1e9 + 7;
const int LOG = 20;
const int maxn = 1e5 + 5;

signed main() {
    int n, m; cin >> n >> m;
    vector<int> h(n+1);
    for(int i=1; i<=n; i++) cin >> h[i];
    cout << n - 1 + *max_element(h.begin(), h.end()) << '\n';
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 23 ms 2008 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 23 ms 2008 KB Output isn't correct
3 Halted 0 ms 0 KB -