查找缺失的数字

从0,1,2,...,n这n+1个数中取n个数,然后找出这n个数中缺少的那个数 #include <iostream> #include<vector> using namespace std; int main() { vector<int> num ; char ch; while (cin>>ch){ if ((ch >= '0') && (ch <= '9')) {
相关文章
相关标签/搜索