亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊(cè)

計(jì)(jì)算機(jī)(jī)技術(shù)(shù)

  • //Euler 函數(shù)前n項(xiàng)和 /* phi(n) 為n的Euler原函數(shù) if( (n/p) % i == 0 ) phi(n)=phi(n/p)*i else phi(n)=phi(n/p

    //Euler 函數(shù)前n項(xiàng)和 /* phi(n) 為n的Euler原函數(shù) if( (n/p) % i == 0 ) phi(n)=phi(n/p)*i else phi(n)=phi(n/p)*(i-1) 對(duì)于約數(shù):divnum 如果i|pr[j] 那么 divnum[i*pr[j]]=divsum[i]/(e[i]+1)*(e[i]+2) //最小素因子次數(shù)加1 否則 divnum[i*pr[j]]=divnum[i]*divnum[pr[j]] //滿足積性函數(shù)條件 對(duì)于素因子的冪次 e[i] 如果i|pr[j] e[i*pr[j]]=e[i]+1 //最小素因子次數(shù)加1 否則 e[i*pr[j]]=1 //pr[j]為1次 對(duì)于本題: 1. 篩素?cái)?shù)的時(shí)候首先會(huì)判斷i是否是素?cái)?shù)。 根據(jù)定義,當(dāng) x 是素?cái)?shù)時(shí) phi[x] = x-1 因此這里我們可以直接寫上 phi[i] = i-1 2. 接著我們會(huì)看prime[j]是否是i的約數(shù) 如果是,那么根據(jù)上述推導(dǎo),我們有:phi[ i * prime[j] ] = phi[i] * prime[j] 否則 phi[ i * prime[j] ] = phi[i] * (prime[j]-1) (其實(shí)這里prime[j]-1就是phi[prime[j]],利用了歐拉函數(shù)的積性) 經(jīng)過以上改良,在篩完素?cái)?shù)后,我們就計(jì)算出了phi[]的所有值。 我們求出phi[]的前綴和 */

    標(biāo)簽: phi Euler else 函數(shù)

    上傳時(shí)間: 2016-12-31

    上傳用戶:gyq

  • Visual 開發(fā) 希望對(duì)你們有幫助 public static int Rom(int n, int m)//雙寄或雙偶 { int count = 0 //第一排Y坐標(biāo)上要幾個(gè)

    Visual 開發(fā) 希望對(duì)你們有幫助 public static int Rom(int n, int m)//雙寄或雙偶 { int count = 0 //第一排Y坐標(biāo)上要幾個(gè) if (n < m) { for (int i = 1 i <= n i = i + 2) { count++ } } else { for (int j = 1 j <= m j = j + 2) { count++ } } return count }

    標(biāo)簽: int Visual public static

    上傳時(shí)間: 2013-12-13

    上傳用戶:懶龍1988

  • 遙控解碼通過電腦串口顯示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar d

    遙控解碼通過電腦串口顯示 /* 晶振:11.0569MHz */ #include <REGX52.h> #define uchar unsigned char uchar data IRcode[4] //定義一個(gè)4字節(jié)的數(shù)組用來存儲(chǔ)代碼 uchar CodeTemp //編碼字節(jié)緩存變量 uchar i,j,k //延時(shí)用的循環(huán)變量 sbit IRsignal=P3^2 //HS0038接收頭OUT端直接連P3.2(INT0) /**************************延時(shí)0.9ms子程序**********************/ void Delay0_9ms(void) {uchar j,k for(j=18 j>0 j--) for(k=20 k>0 k--) } /***************************延時(shí)1ms子程序**********************/ void Delay1ms(void) {uchar i,j for(i=2 i>0 i--) for(j=230 j>0 j--) }

    標(biāo)簽: uchar unsigned 11.0569 include

    上傳時(shí)間: 2013-12-12

    上傳用戶:Breathe0125

  • 關(guān)於圖像壓縮的

    關(guān)於圖像壓縮的,融入了Huffman編碼,Shannon-Fano編碼等技術(shù)!

    標(biāo)簽:

    上傳時(shí)間: 2013-12-19

    上傳用戶:康郎

  • Instead of finding the longest common subsequence, let us try to determine the length of the LCS.

    Instead of finding the longest common subsequence, let us try to determine the length of the LCS. 􀂄 Then tracking back to find the LCS. 􀂄 Consider a1a2…am and b1b2…bn. 􀂄 Case 1: am=bn. The LCS must contain am, we have to find the LCS of a1a2…am-1 and b1b2…bn-1. 􀂄 Case 2: am≠bn. Wehave to find the LCS of a1a2…am-1 and b1b2…bn, and a1a2…am and b b b b1b2…bn-1 Let A = a1 a2 … am and B = b1 b2 … bn 􀂄 Let Li j denote the length of the longest i,g g common subsequence of a1 a2 … ai and b1 b2 … bj. 􀂄 Li,j = Li-1,j-1 + 1 if ai=bj max{ L L } a≠b i-1,j, i,j-1 if ai≠j L0,0 = L0,j = Li,0 = 0 for 1≤i≤m, 1≤j≤n.

    標(biāo)簽: the subsequence determine Instead

    上傳時(shí)間: 2013-12-17

    上傳用戶:evil

  • Programming the Microsoft Windows driver model繁中版 透過Windows驅(qū)動(dòng)程式的權(quán)威們專業(yè)的協(xié)助

    Programming the Microsoft Windows driver model繁中版 透過Windows驅(qū)動(dòng)程式的權(quán)威們專業(yè)的協(xié)助,學(xué)習(xí)如何使用簡(jiǎn)易的方式來撰寫Windows驅(qū)動(dòng)程式。 Microsoft WDM支援隨插即用(PnP)功能,提供了電源管理能力,並詳述撰寫驅(qū)動(dòng)程式/迷你驅(qū)動(dòng)程式的方法。這本由長(zhǎng)時(shí)間接觸裝置驅(qū)動(dòng)程式的專家Walter Oney 與Windows核心小組共同合作的書提供了大量很實(shí)用的例子、圖表、建議,並一行一行分析範(fàn)例的程式碼,好讓您能夠清楚了解實(shí)際上在撰寫驅(qū)動(dòng)程式時(shí)所會(huì)發(fā)生的問題。另外亦更新了Windows XP及Windows 2000的最新驅(qū)動(dòng)程式技術(shù),又告訴您如何除錯(cuò)。

    標(biāo)簽: Windows Programming Microsoft driver

    上傳時(shí)間: 2014-01-19

    上傳用戶:cjl42111

  • //初始化 initscr() //獲得屏幕尺寸 getmaxyx(stdscr, h, w) //畫背景 for(i=0 i<h i++)

    //初始化 initscr() //獲得屏幕尺寸 getmaxyx(stdscr, h, w) //畫背景 for(i=0 i<h i++) for(j=0 j<w j++){ mvaddch(i, j, ACS_CKBOARD) } refresh() //建立窗口 pad = newpad(80, 128) for(i=0 i<80 i++){ char line[128] sprintf(line, "This line in pad is numbered d\n", i) mvwprintw(pad, i, 0, line) } //刷新屏幕 refresh() prefresh(pad, 0, 1, 5, 10, 20, 45) for(i=0 i<50 i++){ prefresh(pad, i+1, 1, 5, 10, 20, 45) usleep(30000) } //等待按鍵 getch()

    標(biāo)簽: getmaxyx initscr stdscr for

    上傳時(shí)間: 2014-08-30

    上傳用戶:龍飛艇

  • 嚴(yán)格按照BP網(wǎng)絡(luò)計(jì)算公式來設(shè)計(jì)的一個(gè)matlab程序,對(duì)BP網(wǎng)絡(luò)進(jìn)行了優(yōu)化設(shè)計(jì) 優(yōu)化1:設(shè)計(jì)了yyy

    嚴(yán)格按照BP網(wǎng)絡(luò)計(jì)算公式來設(shè)計(jì)的一個(gè)matlab程序,對(duì)BP網(wǎng)絡(luò)進(jìn)行了優(yōu)化設(shè)計(jì) 優(yōu)化1:設(shè)計(jì)了yyy,即在o(k)計(jì)算公式時(shí),當(dāng)網(wǎng)絡(luò)進(jìn)入平坦區(qū)時(shí)(<0.0001)學(xué)習(xí)率加大,出來后學(xué)習(xí)率又還原 優(yōu)化2:v(i,j)=v(i,j)+deltv(i,j)+a*dv(i,j)

    標(biāo)簽: matlab yyy BP網(wǎng)絡(luò) 計(jì)算公式

    上傳時(shí)間: 2014-11-30

    上傳用戶:妄想演繹師

  • FLIR 雷達(dá)產(chǎn)品簡(jiǎn)介

    文件中詳細(xì)介紹 FLIR 雷達(dá)產(chǎn)品的各項(xiàng)技術(shù)數(shù)據(jù)

    標(biāo)簽: FLIR 雷達(dá)

    上傳時(shí)間: 2015-03-18

    上傳用戶:戴斗笠的神秘人

  • FLIR 雷達(dá) 重要技術(shù)單元

    文件中詳細(xì)列舉出FLIR雷達(dá)產(chǎn)品所使用的頻率波段以及發(fā)射功率資訊!

    標(biāo)簽: FLIR 雷達(dá)

    上傳時(shí)間: 2015-03-18

    上傳用戶:戴斗笠的神秘人

主站蜘蛛池模板: 拉孜县| 衡山县| 潼关县| 江川县| 贵港市| 晋江市| 东丰县| 玉田县| 桃园县| 顺义区| 库尔勒市| 徐水县| 睢宁县| 玉山县| 镇宁| 罗江县| 汤阴县| 长宁县| 永丰县| 潞城市| 沂源县| 都安| 海兴县| 灵石县| 桑日县| 安丘市| 武汉市| 城口县| SHOW| 福海县| 赣州市| 普兰店市| 错那县| 延长县| 罗山县| 新源县| 天镇县| 中宁县| 渑池县| 鄱阳县| 康乐县|