
國家主席習(xí)近平發(fā)表二〇二一年新年賀詞 大家好垄开!2021年的腳步越來越近伊群,我在北京向大家致以新年的美好祝福! 2020年是極不平凡的一年问拘。面對突如...
二分查找法赦抖,很經(jīng)典的折半查找算法,想當(dāng)然覺得很簡單宦赠,算法效率log(2)N陪毡。今天跟它干上了米母,呵呵。真是實踐出真知毡琉,不可想當(dāng)然铁瞒。 總結(jié)一下幾個問題...
#include #include <cmath> #include<cstdio> #include #define N 101 #defin...
∥兩種方法實現(xiàn) //輸入一個整數(shù),要求反轉(zhuǎn)輸出桅滋,輸出后仍然是具有意義的整數(shù) //輸入樣例:-30800 900 123 //輸出結(jié)果: -80...
// 把一個合數(shù)分解成若干個質(zhì)因數(shù)的乘積的形式慧耍,即求質(zhì)因數(shù)的過程叫做分解質(zhì)因數(shù)。 //輸入樣例:36 //輸出:36=2*2*3*3 #incl...
#include using namespace std; int a[101],n; void quicksort(int left,int ...
今天的題目比較簡單丐谋,統(tǒng)計公共數(shù)芍碧。 #include #include #include<math.h> #define N 1000 #defi...
#include #include #include<math.h> #define N 100 int prime(int k) //判斷是否...