n <- 50a <- numeric(n)for (i in 1:n) {a[i] <- 2*i-1 }m <- 10b <- numeric(m)for (j in 1:m) {b[j] <- 2^j }c <- sort(union(a,b))d <- cumsum(c)count <- 1while (d[count]<=12*c[count+1]){count <- count + 1}count
1200字范文,内容丰富有趣,写作的好帮手!
时间:2023-08-19 19:37:22
n <- 50a <- numeric(n)for (i in 1:n) {a[i] <- 2*i-1 }m <- 10b <- numeric(m)for (j in 1:m) {b[j] <- 2^j }c <- sort(union(a,b))d <- cumsum(c)count <- 1while (d[count]<=12*c[count+1]){count <- count + 1}count