Submission #231180

#TimeUsernameProblemLanguageResultExecution timeMemory
231180palpatinezwBaloni (COCI15_baloni)C++17
0 / 100
14 ms1792 KiB
#include <bits/stdc++.h> using namespace std; #define int long long int N, h[100005]; set<int> s; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> N; for (int i = 0; i < N; i++) { cin >> h[i]; } for (int i = 0; i < N; i++) { s.insert(h[i] + i); } cout << s.size(); }
#Verdict Execution timeMemoryGrader output
Fetching results...