原创 連續相鄰
連續相鄰 時限:1000ms 內存限制:10000K 總時限:1000ms 描述: 給定一個由n個整數組成的數列,數列中元素取值爲(0,65535)之間的整數,相同數值不會重複出現,0是一個例外,可以反覆出現,並且可以通配任
原创 趣味_C#
using System; using System.Windows; using System.Windows.Input; namespace Liyang.SayHello { class SayHello {
原创 多項式基礎_1.2
主函數: // multinomial.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include
原创 SayHello
using System; using System.Windows; namespace Liyang.SayHello { class SayHello { [STAThread] public stati
原创 C/C++指針詳解
#include <iostream> using namespace std; int main(void) { int a = 10;//定義一個變量a,賦值爲10 int *ap =&a; //將a的地址給指針ap
原创 Union&Merge
文件1: #ifndef DATA_H_INCLUDED #define DATA_H_INCLUDED typedef char* ElemType; typedef struct { ElemType* Name; i
原创 計算機科學經典問題_雙向循環表
Project: // LiyangProject.cpp : Defines the entry point for the console ap
原创 Hero In Maze
Hero In Maze 時間限制(普通/Java):1000MS/10000MS 運行內存限制:
原创 多項式_hornerC代碼
主函數main: // multinomial.cpp : Defines the entry point for the console application. // #include "stdafx.h" #inclu
原创 迷宮——1.00
迷宮:############# ##I@@@#@#@@@# ###@#@@@#@#@# #@##@@#@@@#@# ###@@@#@#@#@# #@@@#@@@#@#@# #@#@#####@#@# #@#@@@@@@@@## #@##
原创 圖_非遞歸遍歷_WFS_DFS
#include "stdlib.h" #include "stdio.h" //#include "ERROR.h" //#include "Liyang.h" typedef struct { int amount;
原创 蘋果_組合問題
// ACM_Easy.cpp : Defines the entry point for the console application. //擺蘋果_ACM /* */ //E:/ACM/ACM_Easy/Debug/ACM_Easy
原创 平衡二叉樹
#include <iostream> using namespace std; #include "stdlib.h" #include "stdio.h" ///===================================
原创 循環數
循環數 時間限制: 1000ms 內存限制: 65536kB 描述 n 位的一個整數是循環數(cyclic)的條件是:當用一個 1 到 n 之間的整數去乘它時, 會得到一個將原來的數首尾相接循環移動若干數字再在某處斷開而得到的
原创 “隨機漫步”(Random Walk)模擬演示
(1)、任務描述 有一類問題總稱爲“隨機漫步”(Random Walk)問題,這類問題長久以來吸引着數學界的興趣。所有這些問題即使是最簡單的解決起來也是極其困難的。而且它們在很大程度上還遠沒有得到解決。一個這樣的問題可以描述爲: 在矩形