Statistics

Problem Statement for "TheQuestionsAndAnswersDivTwo"

Problem Statement

John and Brus have become very famous people all over the world, especially in Bolivia. A man in Bolivia decided to write a story about them. To make the story more truthful, he set up an interview with John. He prepared a list of distinct simple "Yes" or "No" questions and he enlisted the help of two friends to transcribe the interview. Each time he asked a question, one friend wrote down the question while the other friend wrote down the answer. He was very nervous when conducting the interview, so he might have asked some of the questions multiple times. However, John's answers always remained the same for the same questions.

Unfortunately, the friend who was writing down John's answers lost his list. You are given a String[] questions, where the i-th element is the i-th question asked. In a desperate attempt to remember the answers, the Bolivian has decided to write down all the possible ways that John might have answered the questions. By doing this, he hopes that he will be able to recognize the correct combination of answers. Return the total number of combinations that he will have to write down.

Definition

Class:
TheQuestionsAndAnswersDivTwo
Method:
find
Parameters:
String[]
Returns:
int
Method signature:
int find(String[] questions)
(be sure your method is public)

Notes

  • Two questions are considered to be the same if corresponding elements of questions are absolutely the same Strings.
  • All questions are case-sensitive, i.e., lowercase and uppercase equivalents of the same letter are considered to be different characters.

Constraints

  • questions will contain between 1 and 10 elements, inclusive.
  • Each element of questions will contain between 1 and 50 characters, inclusive.
  • Each character in questions will be a lowercase letter ('a'-'z'), uppercase letter ('A'-'Z'), question mark ('?') or underscore ('_').

Examples

  1. {"How_are_you_doing?", "How_do_you_like_our_country?", "How_are_you_doing?"}

    Returns: 4

    There are four ways to answer this sequence of questions: "Yes", "Yes", "Yes"; "Yes", "No", "Yes"; "No", "Yes", "No"; "No", "No", "No".

  2. {"Whazzup?"}

    Returns: 2

    Just a single question.

  3. {"Are_you_ready?", "Are_you_ready?", "Are_you_ready?", "Are_you_ready?"}

    Returns: 2

    All these questions are the same.

  4. {"Do_you_like_my_story?", "Do_you_like_my_story", "DO_YOU_LIKE_MY_STORY?", "Do__you__like__my__story?"}

    Returns: 16

    All these questions are distinct.

  5. {"welYgsCwGO", "o", "W", "BPaCs"}

    Returns: 16

  6. {"QNcLDUAEH"}

    Returns: 2

  7. {"yWT", "_rGkgZVvv", "J", "dwJkAq"}

    Returns: 16

  8. {"k", "k", "k", "HzfzivKTyoTwqHGixVsDKHOrbzmDZcNpuvRlkfYUHdhDvR", "k", "sCwGOwoToHqoWZNMBPaCso?G_kQNcLD", "HrBlXmyWTMDE_rGkgZVvvQkgJg_", "k"}

    Returns: 16

  9. {"N", "dfzZnDZpP_zMDmY?uqZiKDyJwPErcdb", "F", "gTyHmwtK_bmuQiLJcRytPTaDzk_cJjA", "kjoUmVFGjtpHnvU"}

    Returns: 32

  10. {"gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "Z", "Z", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC"}

    Returns: 4

  11. {"SzI?ZZeSlWrrYjUsPzGzR", "k", "k", "bbFXWRFDdeSnACJEyLYRifVbBtWiYVVazkW", "k", "bbBMXScfWHBSs"}

    Returns: 16

  12. {"UYiGXxEVYhrOAmmisrh"}

    Returns: 2

  13. {"hGJwu_yc_nYXrHFIhcVHhaj_TroIYuYqrSdGo"}

    Returns: 2

  14. {"YxXwGGXyVti"}

    Returns: 2

  15. {"IvLYUgfOUZkKUfOlsPbyKH?wBFNcHFnoRiSep", "IvLYUgfOUZkKUfOlsPbyKH?wBFNcHFnoRiSep", "IvLYUgfOUZkKUfOlsPbyKH?wBFNcHFnoRiSep"}

    Returns: 2

  16. {"iwnTNfNCKucbAhGfmbeCXVDmEnJqzcZG_"}

    Returns: 2

  17. {"HgtghELkyCFnKYgpWtpZbNSizoBmDlp", "zwWVlguImqtfoVp_VzxgFGjcWFhHvfJYguFF", "HgtghELkyCFnKYgpWtpZbNSizoBmDlp", "HgtghELkyCFnKYgpWtpZbNSizoBmDlp", "HgtghELkyCFnKYgpWtpZbNSizoBmDlp", "XybYs", "HgtghELkyCFnKYgpWtpZbNSizoBmDlp", "puorRm"}

    Returns: 16

  18. {"YzlMuqTCG", "YzlMuqTCG", "lCdZqzvKvkmAlloTUFTXp", "_stLPdVCdoBDtRfqmNkTywbIF", "lCdZqzvKvkmAlloTUFTXp", "lCdZqzvKvkmAlloTUFTXp", "_LKPUFdQoafpF"}

    Returns: 16

  19. {"h", "MpEObSrf_MYWPIP_V", "z"}

    Returns: 8

  20. {"skSFejNNfrSxDdCZvKBb_dBL", "skSFejNNfrSxDdCZvKBb_dBL", "EMS?QlTUyUn", "QlszHU", "tIEZScFt"}

    Returns: 16

  21. {"kEKqcJlhHzfzivKTyoTwqHGixVsDKHOrbzmDZcNpuvRlkfYUHd", "kEKqcJlhHzfzivKTyoTwqHGixVsDKHOrbzmDZcNpuvRlkfYUHd", "elYgsCwGOwoToHqoWZNMBPaCso?G_kQNcLDUAEHrBlXmyWTMDE", "kgZVvvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY?uqZiKDyJwPE", "bTMYFcGegTyHmwtK_bmuQiLJcRytPTaDzk_cJjAlXukjoUmVFG", "kEKqcJlhHzfzivKTyoTwqHGixVsDKHOrbzmDZcNpuvRlkfYUHd", "kgZVvvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY?uqZiKDyJwPE", "_YKmEgGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "kgZVvvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY?uqZiKDyJwPE", "ZFPajpBhIbSzI?ZZeSlWrrYjUsPzGzRinykBVdzwbbFXWRFDde"}

    Returns: 64

  22. {"EyLYRifVbBtWiYVVazkWkXOEAbbBMXScfWHBSsAVvkZUYiGXxE", "EyLYRifVbBtWiYVVazkWkXOEAbbBMXScfWHBSsAVvkZUYiGXxE", "AmmisrhSJbmxhGJwu_yc_nYXrHFIhcVHhaj_TroIYuYqrSdGok", "cYxXwGGXyVtiOGeLcIvLYUgfOUZkKUfOlsPbyKH?wBFNcHFnoR", "pAlFRrw?UqiwnTNfNCKucbAhGfmbeCXVDmEnJqzcZG_LLiQsHg", "ELkyCFnKYgpWtpZbNSizoBmDlpTLDzwWVlguImqtfoVp_VzxgF", "WFhHvfJYguFFKkFvRSruWXybYsfEXjLpuorRmiyDaLYzlMuqTC", "rgClCdZqzvKvkmAlloTUFTXpIyd_stLPdVCdoBDtRfqmNkTywb", "cYxXwGGXyVtiOGeLcIvLYUgfOUZkKUfOlsPbyKH?wBFNcHFnoR", "EyLYRifVbBtWiYVVazkWkXOEAbbBMXScfWHBSsAVvkZUYiGXxE"}

    Returns: 128

  23. {"_LKPUFdQoafpFim?WPhBHCMpEObSrf_MYWPIP_VodszuwgRBsk", "_LKPUFdQoafpFim?WPhBHCMpEObSrf_MYWPIP_VodszuwgRBsk", "_LKPUFdQoafpFim?WPhBHCMpEObSrf_MYWPIP_VodszuwgRBsk", "rSxDdCZvKBb_dBLwcoM_EMS?QlTUyUnaV_QlszHUIZltIEZScF", "FUilKoDNYMyqoALvej?eRpP?WJIaWkoeqfjZGvTnvCIEUINNGg", "aXcfaOafbb?OuQkurPKxeZr?ZFaOTcgclZLSjaVXHvhSApPcBG", "HyIzrndZRHemNuZpNNypAuckVCwQkhFhzfUGpGbQOpFsJwXHCu", "FUilKoDNYMyqoALvej?eRpP?WJIaWkoeqfjZGvTnvCIEUINNGg", "aXcfaOafbb?OuQkurPKxeZr?ZFaOTcgclZLSjaVXHvhSApPcBG", "_LKPUFdQoafpFim?WPhBHCMpEObSrf_MYWPIP_VodszuwgRBsk"}

    Returns: 32

  24. {"JkxEgpXQcsTTqdITJymkyUJHMSqB?HqPdClgtvktTakEOVhTOw", "ImGrAUCtuGNYbKxuSeDAZBOrambSCCkliImGxLjCoBWuyuQjUK", "JkxEgpXQcsTTqdITJymkyUJHMSqB?HqPdClgtvktTakEOVhTOw", "jILSzqBGMvxkneGwB?JVKfcKIuauv?pj_tRjieQPojsnovBgja", "BCFKBwQEbxtv_oDFSImedlAnGOWmUmNgoBzXZNXdzzqwXrWOTK", "pLNoOIdyO?aWFwiylZOko?nGQgLOfFpjjamJ?ZOidKAQBaPsZP", "_OfwmqBIzuUGT_FGjarcHaOIOh?QYpegvNHCrQsnmhIfYXfitl", "d?TLLLWsf?poYVHHrbDeMuQhMV_maaFmvxFXrBfaSWQQLYuJSF", "d?TLLLWsf?poYVHHrbDeMuQhMV_maaFmvxFXrBfaSWQQLYuJSF", "_OfwmqBIzuUGT_FGjarcHaOIOh?QYpegvNHCrQsnmhIfYXfitl"}

    Returns: 128

  25. {"KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "dBiWEtHmnDMKaVfogzKUPJhfEOLkjWmepFhenjaIXGHDRtZafc", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "miXcZJITWGgDlHOMfZagsPOjaCqPYhWKsGxwehYEzKFngjDFgI", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "KVrzETxqWwapJGrCXXV_AKdSUusinAqhURlwoMEDGGusLSFAyP", "miXcZJITWGgDlHOMfZagsPOjaCqPYhWKsGxwehYEzKFngjDFgI"}

    Returns: 8

  26. {"?ZbmnpaqlniqHnHm?JyMEPdXaQxzqUvtPdtmyutLoC_ryWfPlD", "?ZbmnpaqlniqHnHm?JyMEPdXaQxzqUvtPdtmyutLoC_ryWfPlD", "?ZbmnpaqlniqHnHm?JyMEPdXaQxzqUvtPdtmyutLoC_ryWfPlD", "pifRsVNPuchaOfkweLXBj_deFhqICbdusi_EwaNfCDhvEJXue_", "?ZbmnpaqlniqHnHm?JyMEPdXaQxzqUvtPdtmyutLoC_ryWfPlD", "qmjKUZYGtkZx?_cXgaCyfnZllURzzVGM_Vv_unxSTTgEhN?NdA", "_PUhIkUUjwWlyQFUFcJIrtWmQGibMKznoDaCtTLLWqJFr?uJOh", "_PUhIkUUjwWlyQFUFcJIrtWmQGibMKznoDaCtTLLWqJFr?uJOh", "_PUhIkUUjwWlyQFUFcJIrtWmQGibMKznoDaCtTLLWqJFr?uJOh", "?ZbmnpaqlniqHnHm?JyMEPdXaQxzqUvtPdtmyutLoC_ryWfPlD"}

    Returns: 16

  27. {"CUyBGcPoelfdXzgzpBjZOrfhssHzJwtmgMXvAQsBZqlaLOEXBt", "CUyBGcPoelfdXzgzpBjZOrfhssHzJwtmgMXvAQsBZqlaLOEXBt", "CUyBGcPoelfdXzgzpBjZOrfhssHzJwtmgMXvAQsBZqlaLOEXBt", "CUyBGcPoelfdXzgzpBjZOrfhssHzJwtmgMXvAQsBZqlaLOEXBt", "CUyBGcPoelfdXzgzpBjZOrfhssHzJwtmgMXvAQsBZqlaLOEXBt", "PbvwfEOmvsFqRMuaZSGKWIOlsoiPJyhcsffMLShYtkzLIUhyPO", "oSSlWUgPpLzlobh_fFPIfdhdwjXAUWOnVysroVPCXAKVgloAGd", "PTHkVMGVZIJKDpjWolNRJZxcb_MJRqKWCFwYtJSSlJtOhfHh_b", "jbkgTljTSZkQsQL_QKQtQIHFSqniHJuyatpnEAxoNbjzEeshmg", "oSSlWUgPpLzlobh_fFPIfdhdwjXAUWOnVysroVPCXAKVgloAGd"}

    Returns: 32

  28. {"EbGzTEgJvFNcPIVURdTZKhwFTEESzvqWzgkrdnKyoBNti_RD_R", "lvLomxPFBxeiyQ_TolZZWPfcnKFXEpn_gCUOzuyfQqBDYrOlW?", "drzDnmXbUzBvaTyTeYiVGjDUJLAzn?BtOp?hiHhJVszWAKvRhD", "drzDnmXbUzBvaTyTeYiVGjDUJLAzn?BtOp?hiHhJVszWAKvRhD", "lvLomxPFBxeiyQ_TolZZWPfcnKFXEpn_gCUOzuyfQqBDYrOlW?", "KSPMNEUVEnKmqWVHAXcaVwKULtlrLg_ggBfNsmHw_ytq?HeESJ", "eTcFZfLIwDCDBDYMZwwmePQJoHwoiKJUoXTjvQcuIgoNDY?Dtc", "lvLomxPFBxeiyQ_TolZZWPfcnKFXEpn_gCUOzuyfQqBDYrOlW?", "uxRfyobjOacUJLWJwQPvsHpUNLzeyHattCgfTVjIF?DexjHVCJ", "uxRfyobjOacUJLWJwQPvsHpUNLzeyHattCgfTVjIF?DexjHVCJ"}

    Returns: 64

  29. {"wZnrdFvBEFGiSFwRIKZmIISDfYtzETyicsMjxjuCQRrnyzkpzM", "wZnrdFvBEFGiSFwRIKZmIISDfYtzETyicsMjxjuCQRrnyzkpzM", "wZnrdFvBEFGiSFwRIKZmIISDfYtzETyicsMjxjuCQRrnyzkpzM", "xGSlUruTLzRvPcpcDJNdktgRTq_seloJamPep?FY?BLMpenuCN", "wZnrdFvBEFGiSFwRIKZmIISDfYtzETyicsMjxjuCQRrnyzkpzM", "wZnrdFvBEFGiSFwRIKZmIISDfYtzETyicsMjxjuCQRrnyzkpzM", "VAHtQgKQQpvqVXHXziMcdPWoFCsbMwZkeT?DFRWxQRFKvPyJX?", "wIE?TeBpcRItoxExIR?TvMPTFDUN_UBRqBUYdYgfGqHdxUZgwB", "yL?zdDCh?xAsINKOrdhiCtlMtkNlXLJUddAbFrli_d?grXdCRA", "RRAueniDClFyuTVqZRrNocWgLBXGAwqaYpwzUixsvtOWEistiw"}

    Returns: 64

  30. {"OErdWsBqSReIWnAoKPzYZ_eiHSYIvExu_fXbWdihkhzZaGQ_pI", "OErdWsBqSReIWnAoKPzYZ_eiHSYIvExu_fXbWdihkhzZaGQ_pI", "OErdWsBqSReIWnAoKPzYZ_eiHSYIvExu_fXbWdihkhzZaGQ_pI", "kfatWwgRDcdVKUppXfRCvzQ?tGzEbKzgzPcOrVAFmZhdqncksJ", "OErdWsBqSReIWnAoKPzYZ_eiHSYIvExu_fXbWdihkhzZaGQ_pI", "OErdWsBqSReIWnAoKPzYZ_eiHSYIvExu_fXbWdihkhzZaGQ_pI", "kfatWwgRDcdVKUppXfRCvzQ?tGzEbKzgzPcOrVAFmZhdqncksJ", "kfatWwgRDcdVKUppXfRCvzQ?tGzEbKzgzPcOrVAFmZhdqncksJ", "kfatWwgRDcdVKUppXfRCvzQ?tGzEbKzgzPcOrVAFmZhdqncksJ", "nSYswkheBJQTsMomNF_ycyjtqfxkHNcQW_MUxiaMufUpOiOTQh"}

    Returns: 8

  31. {"k", "cJlhHzfzivKTyoTwqHGixVsDKHOrbzmDZcNpuvRlkfYUHdh", "welYgsCwGOwoToHqoWZNMBPaCso?G_kQNcLDUAEH", "XmyWTMDE_rGkgZVvvQkgJg_JdwJkAqNqICdfzZnDZpP_zM", "?uqZiKDyJwPErcdbTMYFcGegTyHmwtK_bmuQi", "RytPTaDzk_cJjAlXukjoUmVFGjt", "vU_YKmEgGc_PiLXgyqISPUluJZUOjcQAvyukADDh", "lEivF"}

    Returns: 256

  32. {"_uiAZFPajpBhIbSzI?ZZeSlWrrYjUsPzGzRinyk", "zwbbFXWRFDdeSnACJEyLYRifVbBtWiYVVazkWkXOEAbbBMXS", "HBSsAVvkZUYiGXxEVYhrOAmmisrhS", "xhGJwu_yc_nYXrHFIhcVHhaj_TroIYuYqrSdGokt_bcYxXw"}

    Returns: 16

  33. {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"}

    Returns: 1024

  34. {"gfOUZkKUfOlsP", "H?wBFNcHFnoRi", "AlFRrw?UqiwnTNfNCKucbAhGfmb", "VDmEnJqzcZG_LLiQsHgtg", "kyCFnKYgpWtpZbNSizoBmDlpTLDzwWVlguImqtfoV"}

    Returns: 32

  35. {"gFGjcWFhHvfJYguFFKkFvRSruWXybYsfEXjLpuorRmiyDa", "lMuqTCGxVrgClCdZqzvKv"}

    Returns: 4

  36. {"oTUFTXpIyd_stLPd"}

    Returns: 2

  37. {"DtRfqmNkTywbIFWawxHQr_LKP"}

    Returns: 2

  38. {"afpFim?WPhB"}

    Returns: 2

  39. {"ObSrf_MYWPIP_VodszuwgRBskSFejNNfrSxDdCZvKBb_dBLwc", "EMS?QlTUyUn", "QlszHU", "tIEZScFt", "UilKoDNYMyqoALvej?eRpP?WJIaWkoeqfjZGvTnvCIEUINNGgw", "XcfaOafbb?OuQkurPKxeZr?ZFaOTcgclZ", "aVX"}

    Returns: 128

  40. {"pPcBG?DMHyIzrndZRHe", "ZpNNypAuckVCwQkhFhzfUGpGbQOpFsJwXHCuUsXXYTVzr", "k", "p", "sTTqdITJymkyUJHMSqB?HqPdClgtvkt", "EOVhTOwiE"}

    Returns: 64

  41. {"k", "k", "k", "k", "k", "k", "k", "k"}

    Returns: 2

  42. {"qHGixVsDKHOrbzmDZcNpuvRlkfY", "qHGixVsDKHOrbzmDZcNpuvRlkfY", "qHGixVsDKHOrbzmDZcNpuvRlkfY", "qHGixVsDKHOrbzmDZcNpuvRlkfY", "qHGixVsDKHOrbzmDZcNpuvRlkfY"}

    Returns: 2

  43. {"CwGOwoToHqoWZNMBPaCso?G_kQNcLDUAEHrBlXmyWTMDE_r"}

    Returns: 2

  44. {"vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY", "vvQkgJg_JdwJkAqNqICdfzZnDZpP_zMDmY"}

    Returns: 2

  45. {"GegTyHmwtK_bmuQiLJcRytPTaDz", "GegTyHmwtK_bmuQiLJcRytPTaDz", "GegTyHmwtK_bmuQiLJcRytPTaDz"}

    Returns: 2

  46. {"kjoUmVFGjtpHnvU"}

    Returns: 2

  47. {"gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC", "gGc_PiLXgyqISPUluJZUOjcQAvyukADDhaEmlEivFDVsC"}

    Returns: 2

  48. {"How_are_you_doing?", "How_do_you_like_our_country?", "How_are_you_doing?" }

    Returns: 4

  49. {"Are_you_ready?", "Are_you_ready?", "Are_you_ready?", "Are_you_ready?" }

    Returns: 2

  50. {"A", "A", "B", "C" }

    Returns: 8

  51. {"a", "b", "c", "d", "e", "f", "h" }

    Returns: 128

  52. {"Are_you_ready?", "Are_you_xeady?", "Are_you_raady?", "Are_you_ready?" }

    Returns: 8

  53. {"ABC", "BCD", "DEF", "def", "def", "asdf", "asgwb", "asdfvaweg", "asdf", "str" }

    Returns: 256

  54. {"ab", "cd", "ef" }

    Returns: 8

  55. {"a", "b", "c", "d", "e" }

    Returns: 32

  56. {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j" }

    Returns: 1024

  57. {"A", "B", "C" }

    Returns: 8

  58. {"How_do_you_like_our_country?", "How_are_you_doing?", "How_are_you_doing?" }

    Returns: 4

  59. {"a", "aa", "aaa", "aaaa", "aaaaa" }

    Returns: 32

  60. {"asd", "asdasd", "sdfgsd", "werwer", "sdfsdf" }

    Returns: 32

  61. {"hi", "hello", "hwd" }

    Returns: 8

  62. {"a", "A", "b" }

    Returns: 8

  63. {"my_quest?", "myyy_questtt?", "myMYmy?" }

    Returns: 8

  64. {"a", "a" }

    Returns: 2

  65. {"hello?", "sadfasdf?", "fsgsdfhg?" }

    Returns: 8

  66. {"Do_you_like_my_story?", "Do_you_like_my_story", "DO_YOU_LIKE_MY_STORY?", "Do__you__like__my__story?" }

    Returns: 16

  67. {"hello?", "fine?", "good?" }

    Returns: 8

  68. {"aa", "ab", "aa", "ab", "aa", "ab", "aa", "ab" }

    Returns: 4

  69. {"Are_you_ready?", "Are_you_ready?", "Are_you_ready?", "Are_you_ready?", "Do_you_like_my_story?", "Do_you_like_my_story?", "Do_you_like_my_story?" }

    Returns: 4

  70. {"Do_you_like_my_story?", "Do_you_like_my_story", "DO_YOU_LIKE_MY_STORY?", "Do__you__like__my__story?", "hello" }

    Returns: 32

  71. {"a", "b", "c" }

    Returns: 8

  72. {"A", "B", "A", "B", "A", "B", "A", "B" }

    Returns: 4

  73. {"troto", "troto", "troto" }

    Returns: 2

  74. {"Do_you_like_my_story?", "Do_you_like_my_story", "DO_YOU_LIKE_MY_STORY?", "Do__you__like__my__story?", "hogehoge" }

    Returns: 32

  75. {"A", "B", "A", "B", "C", "C", "d", "C", "A" }

    Returns: 16

  76. {"asdlkassd", "asdasdasd", "asdasdasd", "aaa", "aaa", "aaa", "aaa", "sdsdsdwe", "www", "www" }

    Returns: 32

  77. {"a", "b", "c", "d", "e", "f", "g", "h", "i", "d" }

    Returns: 512

  78. {"a?", "whatmatt?", "whatmatt?", "whatmatt?" }

    Returns: 4

  79. {"YY", "XX", "ZZ" }

    Returns: 8

  80. {"a", "a", "a", "a", "a", "b", "b", "b", "b", "b" }

    Returns: 4

  81. {"a", "a", "a", "b", "c" }

    Returns: 8

  82. {"nik", "har", "har", "har" }

    Returns: 4

  83. {"a", "b", "b", "b", "a" }

    Returns: 4


This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2024, TopCoder, Inc. All rights reserved.
This problem was used for: