看板 b99902HW 關於我們 聯絡資訊
剛剛有人寫信來問我為什麼他一直測都沒錯,丟上批改娘只有 4 分… 如果有同學有類似的情況可以試試以下的程式碼: int friends[500]; Graph *g = (Graph*) malloc(sizeof(Graph)); init(g); add_node(g, 500); add_node(g, 499); printf("%d\n", add_edge(g, 500, 499)); printf("%d\n", add_edge(g, 499, 500)); printf("%d\n", find_friends(g, 500, friends)); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.122.49
radar735:所以是1~500? 12/11 20:18
bztfir:科科 12/11 22:21
m80126colin: no greater than 500 這句話真的是害人不淺 12/12 00:59