摘要: #include #include #include using namespace std;int main(){ int x,k; cin >> x >> k; vector num(x+1, false); num[x] = true; for(int i = 0 ; i > index; if( index == 1){ cin >> num1 >> num2; num[num1]=num[num2] = true; }else{ cin >> num1; ... 阅读全文
posted @ 2014-03-12 23:47 OpenSoucre 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){ int n,x; cin >> n >> x; int sum = 0; for(int i = 0 ; i > number; sum +=number; } if(sum < 0) sum = -sum; cout<<(sum%x ? sum/x+1 : sum/x) <<endl;} 阅读全文
posted @ 2014-03-12 22:36 OpenSoucre 阅读(207) 评论(0) 推荐(0) 编辑