原创 貪喫蛇self1

這是我以前寫的貪喫蛇遊戲,會有三個版本,從簡陋到還算可以吧。是我分別花了三個晚上的時間逐步完善的。 第一個版本要試玩的話記得全屏。 這一個版本很簡陋,就是刷屏,然後不停輸出。 想法我都寫在註釋裏了。 /* 我們先要生成一條蛇,那就用一個

原创 HDU4278 Faulty Odometer

Description   You are given a car odometer(里程錶) which displays the miles traveled as an integer(整數). The odome

原创 貪喫蛇self2

這個版本的所有更新都寫註釋了,只是注意要試玩的話不用再全屏了,開始時那個就行。 /* 更新計劃: 調整屏幕大小 對原來的算法進行優化,除去一些bug; 增加開始畫面; 完善圖形; 增加顏色; 增加邊框; 選擇等級; */

原创 貪喫蛇self3

這個版本其實沒更新啥,就是根據學長的建議寫成了工程的形式,還有處理了一些自己發現的bug 這個是main.c裏的 /* 本次目標: 1.實現工程化 2、解決長寬不一樣的問題 3,優化部分代碼 */ #include "tan

原创 概率dp LightOJ 1030 Discovering Gold

Description You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave c

原创 kmp Seek the Name, Seek the Fame

Description The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the

原创 矩陣乘法 Matrix Power Series

Description Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Input

原创 HDU 5038 Grade

Description Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and as

原创 狀態dp POJ 3254 Corn Fields

Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 1

原创 二分法 The Frog's Games

Description The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. O

原创 A water problem

Problem Description Two planets named Haha and Xixi in the universe and they were created with the universe beginnin

原创 數位dp HDU 3555 Bomb

Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the t

原创 HDU 4282 A very hard mathematic problem

Description   Haoren is very good at solving mathematic problems. Today he is working a problem like this:    F

原创 概率dp HDU4336 Card Collector

Description In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, f

原创 Zhu and 772002

Problem Description Zhu and 772002 are both good at math. One day, Zhu wants to test the ability of 772002, so he ask