原创 hi 大家好
大家好,我是隻萌新,發表博客是爲了把自己寫過的題目放在這兒以便日後觀看,當然也是爲了和大家分享,不過我只是隻萌新啦,啦啦啦O(∩_∩)O~~~
原创 PTA天梯決賽14題直搗黃龍
題目: 5-14 直搗黃龍 (30分) 本題是一部戰爭大片 —— 你需要從己方大本營出發,一路攻城略地殺到敵方大本營。首先時間就是生命,所以
原创 PTA中國大學MOOC-陳越、何欽銘-數據結構-2017春課後作業03樹1 樹的同構
03-樹1 樹的同構 (25分) 給定兩棵樹T1和T2。如果T1可以通過若干次左右孩子互換就變成T2,則我們稱兩棵樹是“同構”的。例如圖1給
原创 浙大校賽 How many nines
題目: How Many Nines Time Limit: 1 Second Memory Limit: 65536 KB If w
原创 插入並平衡二叉搜索樹操作代碼
如題↑,儲存起來忘了的話可以看看 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> typedef int ElementType; ty
原创 my self
不知不覺學了一個多學期的C了,感覺自己好弱小啊紅紅火火恍恍惚惚哈哈哈哈,看了神牛的博客感覺根本不是一個世界的人啊,大腦比我複雜三倍吧哈哈哈哈哈,而且自己缺點也挺多的,寫程序得過且過,從不考慮精細,偏執,想到方法就馬上寫,草稿也不打,不會總
原创 ZOJ17th校賽I題Course Selection System
題目: Course Selection System Time Limit: 1 Second Memory Limit: 65536 KB There are n courses in the course select
原创 論分支結構我服誰
這是2017廣東工業大學程序設計競賽決賽中的一個題目 Description 衆所周知的是,TMK特別容易遲到,終於在TMK某次又遲到了之後,Maple怒了,Maple大喊一聲:“我要跟你決一死戰!”然後Maple就跟TMK玩起了一個關
原创 杭電OJ1002
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s
原创 2017圖森未來杯(中學虐大學杯)D題
題目: Let's Chat Time Limit: 1 Second Memory Limit: 65536 KB ACM (ACMers' Chatting Messenger) is a famous instan
原创 省賽觀戰感想
第一次到浙大這麼高大上的地方看比賽啊,啊啊啊啊,好激動啊,學校好大啊,連電影院都有,還有亞洲第二大食堂2333(聽說的),好像在這讀書啊,不過我這種
原创 二叉搜索樹的操作集
如題↑,我只是怕忘掉。。所以放這兒備用 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> typedef int ElementType; t
原创 並查集的優化措施
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define MaxN 10000 int a[MaxN]; int find(int X
原创 ural1519 Formula 1
Background Regardless of the fact, that Vologda could not get rights to hold the Winter Olympic games of 20**, it is we
原创 陳越何欣民數據結構2017年春11散列4
題目: 11-散列4 Hashing - Hard Version (30分) Given a hash table of size NNN, we can define a hash function . Suppose t