public int[] エンコ(string str)
{
List<int> result = new List<int>();
for (int i = 0; i < str.Length; i++){
if(i % 2 == 0){
result.Add(偶数用エンコテーブル[str[i]]);
}
else{
result.Add(奇数用エンコテーブル[str[i]]);
}
}
return result.ToArray();
}

public string デコ(int[] arr){
StringBuilder result = new StringBuilder();
for (int i = 0; i < arr.Length; i++){
if (i % 2 == 0){
result.Append(偶数用デコテーブル[arr[i]]);
}
else{
result.Append(奇数用デコテーブル[arr[i]]);
}
}
return result.ToString();
}