#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;
}
相关文章
- Codeforces Round #525 (Div. 2)A. Ehab and another construction problem
- Codeforces Round #272 (Div. 2) A. Dreamoon and Stairs 水题
- Codeforces Round #272 (Div. 2)-A. Dreamoon and Stairs
- Codeforces Round #424 (Div. 2, rated, based on VK Cup Finals) E. Cards Sorting 树状数组
- D. Vanya and Treasure Codeforces Round #355 (Div. 2)
- Codeforces Round #604 (Div. 2) A. Beautiful String(贪心)
- Codeforces Round #603 (Div. 2) A. Sweet Problem(水.......没做出来)+C题
- Codeforces Round #185 (Div. 2) A. Whose sentence is it? 水题
- Codeforces Round #373 (Div. 2) A. Vitya in the Countryside 水题
- Codeforces Round #297 (Div. 2)A. Vitaliy and Pie 水题