摘要: 数组 : 1 4 7 9 12 45 56 [mayc@ ~/friendCode]$./test5find from 0 to 7find from 0 to 3find from 2 to 3find from 2 to 2没找到7find from 0 to 7find from 0 to 3 阅读全文
posted @ 2020-11-15 19:57 哈哈不是嘎嘎 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1. 整数相除转成整数减法的程序 2. 二分查找法解整数相除 方式1 void showResult(const vector<char>& result) { for(int i = 0; i < result.size(); i++) { if(result[i] != '.') { cout 阅读全文
posted @ 2020-11-15 19:56 哈哈不是嘎嘎 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 0 回环 1 回环 11 回环 12 不回环 121 回环 1221 回环 12321 回环 123421 不回环 123311 不回环 #include<iostream> #include<cmath> using namespace std; int getNumberPow(int a) / 阅读全文
posted @ 2020-11-15 13:28 哈哈不是嘎嘎 阅读(541) 评论(0) 推荐(0) 编辑