• 2368 String plus

    时间限制 : 2000/1000 MS(Java/Others) | 内存限制 : 131072/65536 KB(Java/Others)

    提交数 : 983 | 通过数 : 225

    题目描述

    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);

    输入要求

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

    输出要求

    the ans of String Plus

    输入样例

    abcdef
    gggggg

    输出样例

    1215

    提示


    来源

    宁大第三届院赛

    [ 返回顶端 ] | [ 代码提交 ] | [ 统计数据 ] | [ 历史提交 ]