> 其他 >
如何在数列中计算不重复的数字个数
如在a1----a20列,有多个数字,计算a列不重复的数字个数
人气:222 ℃ 时间:2020-06-20 06:23:16
解答
#include
using namespace std;
int main(){
int a[20] = {...}; //初始化数组
int count = 1;
for(int i=1; i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版