제출 #1091329

#제출 시각아이디문제언어결과실행 시간메모리
1091329Trisanu_DasSolar Storm (NOI20_solarstorm)C++17
0 / 100
91 ms13440 KiB
#include<bits/stdc++.h> using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n, s, k; cin >> n >> s >> k; int d[n - 1], v[n]; for(int i = 0; i < n - 1; i++) cin >> d[i]; for(int i = 0; i < n; i++) cin >> v[i]; if(2 * k + 1 > n) cout << k + 1 << '\n'; else cout << n / 2 << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...