Submission #1091243

#TimeUsernameProblemLanguageResultExecution timeMemory
1091243speedcodeBalloons (CEOI11_bal)C++17
40 / 100
2061 ms2828 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); int n; cin >> n; vector<float> res1 = {}; vector<float> res2 = {}; for(int i = 0; i < n; i++){ float a; float b; cin >> a >> b; for(int j = 0; j < i; j++){ b = min(b, (a-res1[j])*(a-res1[j])/4/res2[j]); } cout << fixed << setprecision(3) << b << '\n'; res1.push_back(a); res2.push_back(b); } }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...