2009-08-01から1ヶ月間の記事一覧
#include <stdio.h> #include <string.h> #include <stdlib.h> //最小の数を探す int min(int a, int b, int c) { return a > b ? (b > c ? c : b) : (a > c ? c : a); } //レーベンシュタイン距離を求める int LevenshteinDistance(char *str1, char *str2) { int lenstr1 = strlen(str1)</stdlib.h></string.h></stdio.h>…