#include #include #include using namespace std; string s; string t; int costo[4]; int costo_t=0; int costo_t_fix=0; int costo_minore; int len_s; int len_t; int getCosto(char a){ switch(a){ case 'A': return costo[0]; break; case 'C': return costo[1]; break; case 'G': return costo[2]; break; case 'T': return costo[3]; break; } } int decrementa_cost(int pos_t,int pos_s,int costo_temp){ int uguali=1; while(uguali && pos_t> costo[i]; fin.close(); len_s = s.length(); len_t = t.length(); // calcolo costo della stringa t for(int i=0; i