原创 數字圖像處理(實驗5)-圖像分割

一、實驗目的 1、掌握p參數分割的工作原理和算法實現 2、掌握均勻性度量法分割的工作原理和算法實現 二、實驗內容 1實現P-參數法的圖像分割的代碼。 測試代碼: Im=imread('yw2_g.jpg'); [Im2]=pParam

原创 病毒侵襲(strstr)

Description 當太陽的光輝逐漸被月亮遮蔽,世界失去了光明,大地迎來最黑暗的時刻。。。。在這樣的時刻,人們卻異常興奮——我們能在有生之年看到500年一遇的世界奇觀,那是多麼幸福的事兒啊~~ 但網路上總有那麼些網站,開始藉着民衆的

原创 HDU-1096 A+B for Input-Output Practice (VIII)

A+B for Input-Output Practice (VIII) Problem Description Your task is to calculate the sum of some integers.    

原创 Mispelling4

Description Misspelling is an art form that students seem to excel at. Write a program that removes the nth character

原创 我是菜鳥,我怕誰

Description lin2144是一隻小菜鳥,都是笨鳥先飛,lin2144想來個菜鳥先飛,他從0點出發 一開始的飛行速度爲1m/s,每過一個單位時間lin2144的飛行速度比上一個單位時間的飛行速度快2m/s,問n (0 < n

原创 HDU-2065 紅色病毒問題

Description 醫學界發現的新病毒因其蔓延速度和Internet上傳播的"紅色病毒"不相上下,被稱爲"紅色病毒",經研究發現,該病毒及其變種的DNA的一條單鏈中,胞嘧啶,腺嘧啶均是成對出現的。 現在有一長度爲N的字符串,滿足一下

原创 HDU-2047 阿牛的EOF牛肉串

Problem Description 今年的ACM暑期集訓隊一共有18人,分爲6支隊伍。其中有一個叫做EOF的隊伍,由04級的阿牛、XC以及05級的COY組成。在共同的集訓生活中,大家建立了深厚的友誼,阿牛準備做點什麼來紀念這段激情燃

原创 HDU-2074 疊筐(代碼超簡單)

  Problem Description 需要的時候,就把一個個大小差一圈的筐疊上去,使得從上往下看時,邊筐花色交錯。這個工作現在要讓計算機來完成,得看你的了。     Input 輸入是一個個的三元組,分別是,外筐尺

原创 HDU-2045 不容易系列之(3)—— LELE的RPG難題

  Problem Description 人稱“AC女之殺手”的超級偶像LELE最近忽然玩起了深沉,這可急壞了衆多“Cole”(LELE的粉絲,即"可樂"),經過多方打探,某資深Cole終於知道了原因,原來,LELE最近研究起了

原创 HDU 1095 A+B for Input-Output Practice (VII)

A+B for Input-Output Practice (VII)    Problem Description Your task is to Calculate a + b.     Input The

原创 Parliament

Description New convocation of The Fool Land's Parliament consists of N delegates. According to the present regulation

原创 Ilya and Queries

Ilya the Lion wants to help all his friends with passing exams. They need to solve the following problem to pass the I

原创 HDU 1094

A+B for Input-Output Practice (VI)   Problem Description Your task is to calculate the sum of some integers.    

原创 HDU-1093

A+B for Input-Output Practice (V) Problem Description Your task is to calculate the sum of some integers.    

原创 HDU-2044 一隻小蜜蜂...

Problem Description 有一只經過訓練的蜜蜂只能爬向右側相鄰的蜂房,不能反向爬行。請編程計算蜜蜂從蜂房a爬到蜂房b的可能路線數。 其中,蜂房的結構如下所示。     Input 輸入數據的第一行是一