#include <iostream>
using namespace std; int main(){
int n,x;
cin >> n >> x;
int sum = ;
for(int i = ; i < n ; ++ i){
int number;
cin>> number;
sum +=number;
}
if(sum < ) sum = -sum;
cout<<(sum%x ? sum/x+ : sum/x) <<endl;
}
相关文章
- 12-19Codeforces Round #585 (Div. 2) A. Yellow Cards(数学)
- 12-19Codeforces Round #692 (Div. 2, based on Technocup 2021 Elimination Round 3) A. In-game Chat 模拟
- 12-19Codeforces Round #364 (Div. 2)->A. Cards
- 12-19Codeforces Round #566 (Div. 2)A. Filling Shapes
- 12-19Codeforces Round #564 (Div. 2) C. Nauuo and Cards(贪心)
- 12-19Codeforces Round #604 (Div. 2) A. Beautiful String(贪心)
- 12-19A. Inscribed Figures--简单数学--Educational Codeforces Round 64 (Rated for Div. 2)
- 12-19Codeforces Round #376 (Div. 2) F. Video Cards 数学,前缀和
- 12-19Codeforces Round #593 (Div. 2) A. Stones
- 12-19Codeforces Round #381 (Div. 2)A. Alyona and copybooks(dfs)