原创 hdu5015——233 Matrix(矩陣快速冪)

Problem Description In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333,

原创 OpenGL應用——實現DDA算法

計算機圖形學上機實驗終於能摸索畫出來了,可喜可賀可喜可賀 DDA算法直接是參照教材上的,就是畫點的那部分自己改了下,當然這就已經夠累了,畢竟老師的意念教學默認你已經精通opengl,然後能立馬畫個鑽石圖案什麼的。。。 聲明:以下

原创 hdu4965——Fast Matrix Calculation(快速矩陣冪優化)

Problem Description One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just

原创 冬去春來

  今天湖南大學的擬錄取名單出來了,我成功考上了湖南大學的碩士研究生,當初選擇二戰也算有了個滿意的回報。正好趁着這個機會總結下這四(五)年的本科生活。   先說總結,煙臺大學本科這四年可以說過的很充實,有許多歡樂的記憶,也有許多痛苦的

原创 人工智能實現簡單的五子棋程序

我這個程序在QQ五子棋上實驗了一下,結果是黑棋先手全勝,白棋後手的勝率卻慘不忍睹,原因有下: 1、五子棋的先手是有優勢的,所以職業比賽裏都會有禁手來實現公平 2、水平有限,對局面的評估只有一小部分 主要思路就是博弈樹,程序向前看一步,

原创 poj1552——Doubles

Description As part of an arithmetic competency program, your students will be given randomly generated lists of from 2

原创 hdu1711——Number Sequence(KMP求位置)

Problem Description Given two sequences of numbers : a[1], a[2], …… , a[N], and b[1], b[2], …… , b[M] (1 <= M <= 10000

原创 2017年山東省第八屆acm省賽總結

        作爲一個即將退役的大三隊員,這屆省賽對我來說就是最後一次比賽了,同時也是最重要的一次比賽。在去年的省賽中,我們隊發揮的不理想,沒拿到獎牌,因此今年就是最後的機會,我們隊在這一年中也準備了很多,其中也有過放棄,失望等時期,不

原创 poj3308——Paratroopers(最小割)

Description It is year 2500 A.D. and there is a terrible war between the forces of the Earth and the Mars. Recently, th

原创 poj1658——Eva's Problem

Description Eva的家庭作業裏有很多數列填空練習。填空練習的要求是:已知數列的前四項,填出第五項。因爲已經知道這些數列只可能是等差或等比數列,她決定寫一個程序來完成這些練習。 Input 第一行是數列的數目t(0 <= t

原创 山東省第七屆ACM省賽題——Fibonacci(二分)

Problem Description Fibonacci numbers are well-known as follow: Now given an integer N, please find out whether N ca

原创 hdu5917——Wrestling Match(二分圖染色)

Problem Description Nowadays, at least one wrestling match is held every year in our country. There are a lot of peopl

原创 poj1163——The Triangle(簡單dp)

Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a

原创 csu1803——2016(數學)

Description 給出正整數 n 和 m,統計滿足以下條件的正整數對 (a,b) 的數量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍數。 Input 輸入包含不超過 30 組數據。 每

原创 poj2528——Mayor's posters(離散化+區間覆蓋)

Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have bee