제출 #1123299

#제출 시각아이디문제언어결과실행 시간메모리
1123299sunboiRoom Temperature (JOI24_ho_t1)C++20
5 / 100
2 ms328 KiB
#include <bits/stdc++.h> //#include "fish.h" using namespace std; #define int long long signed main(){ int n, t; cin >> n >> t; int ans = 0, x = 0, y = 0; vector<int> a(n); for (int i = 0; i < n; i++){ cin >> a[i]; if ((a[i] % t) <= t / 2) ans += (a[i] % t); else ans += t - (a[i] % t); } cout << (ans + n - 1) / n << endl; }
#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...