• 2368 String plus

    Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 131072/65536 KB(Java/Others)

    Submits : 983 | Solved : 225

    Description

    Define the operation String Plus as the sum of ASCII in StringA plus the sum of ASCII in StringB;
    for example StringA:abcdef
                StringB:gggggg
    StringA plus StringB =(97+98+99+100+101+102)+(103+103+103+103+103+103)=1215(the ASCII of 'a' is 97);

    Input

    two strings(the length of each string will not be larger than 100)

    Output

    the ans of String Plus

    Sample Input

    abcdef
    gggggg

    Sample Output

    1215

    HINT


    Source

    宁大第三届院赛

    [ Top ] | [ Submit ] | [ Statistics ] | [ Standing ]