原创 【鄭輕】[1899]985的最大和難題
1899: 985的最大和難題 Time Limit: 1 Sec Memory Limit: 128 MB Description 985有2 * n - 1個整數,他每次可以將其中n個數變號,操作次數不限,問他可以得到的最大
原创 【看書】鄰接表的創建與使用
鄰接表是圖論中常用的一種數據結構。 如何構建鄰接表【模板】【鄰接表與鄰接矩陣的選擇】 鄰接表與鄰接矩陣有相似的作用:用於儲存一個圖中所有的節點,但是鄰接矩陣比較浪費內存,當數據較小時,鄰接矩陣還可以計算 但是一旦數據較大,用鄰
原创 【鄭輕】[1897]985的紅綠燈難題
1897: 985的紅綠燈難題 Time Limit: 1 Sec Memory Limit: 128 MB Description 已知紅、綠、黃燈各持續r、g、y秒,985發現此時燈剛剛變綠,他想知道x秒後燈是什麼顏色。
原创 【POJ】[1383]Labyrinth
Labyrinth Time Limit: 2000MS Memory Limit: 32768K Description The northern part of the Pyramid contains a very
原创 【POJ】[1985]Cow Marathon
Cow Marathon Time Limit: 2000MS Memory Limit: 30000K Case Time Limit: 1000MS Description After hearing about
原创 【杭電】[4707]Pet
原文地址:http://www.boiltask.com/blog/?p=1980 Pet Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K
原创 【杭電】[2196]Computer
Computer Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description A scho
原创 【POJ】[2631]Roads in the North
Roads in the North Time Limit: 1000MS Memory Limit: 65536K Description Building and maintaining roads among commu
原创 【鄭輕】[1895]985的0-1串難題
1895: 985的0-1串難題 Time Limit: 1 Sec Memory Limit:128 MB Description 985有一個長度爲n的0-1串,已知他最多可以修改k次(每次修改一個字符即0->1 或者 1->
原创 【鄭輕】[1894]985的方格難題
1894: 985的方格難題 Time Limit: 1 Sec Memory Limit: 128 MB Description 985走入了一個n * n的方格地圖,他已經知道其中有一個格子是壞的。現在他要從(1, 1)走到
原创 【杭電】[5326]Work
原文地址:http://www.boiltask.com/blog/?p=1982 Work Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768
原创 【POJ】[1061]青蛙的約會
青蛙的約會 Time Limit: 1000MS Memory Limit: 10000K Description 兩隻青蛙在網上相識了,它們聊得很開心,於是覺得很有必要見一面。它們很高興地發現它們住在同一條緯度線上,於是它們約
原创 【LightOJ】[1198]Karate Competition
1198 – Karate Competition Time Limit: 2 second(s) Memory Limit: 32 MB Your karate club challenged another karate cl
原创 【鄭輕】[1896]985的買飲料難題
1896: 985的買飲料難題 Time Limit: 1 Sec Memory Limit: 128 MB Description 天氣太熱了,985制定了對未來的規劃即第i天喝a[i]瓶飲料。爲了節約開支,他打聽到了第i天每
原创 【鄭輕】[1902]985的因子對難題
1902: 985的因子對難題 Time Limit: 2 Sec Memory Limit: 128 MB Description 985有n個正整數,他想知道存在多少個不同的因子對(a[i], a[j])使得 1 <= i,