HDU 6034 Balala Power! 【模拟】【大数高精度】

这篇博客主要介绍了如何解决HDU 6034题目的过程,涉及模拟和大数高精度计算。作者分享了题目链接、题目描述,并阐述了解题思路,最后给出了自己的代码实现。
摘要由CSDN通过智能技术生成

Balala Power!

Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 2941    Accepted Submission(s): 648


Problem Description

Talented   Mr.Tang  has   n  strings consisting of only lower case characters. He wants to charge them with Balala Power (he could change each character ranged from   a  to   z  into each number ranged from   0  to   25, but each two different characters should not be changed into the same number) so that he could calculate the sum of these strings as integers in base   26  hilariously.

Mr.Tang  wants you to maximize the summation. Notice that no string in this problem could have leading zeros except for string "0". It is guaranteed that at least one character does not appear at the beginning of any string.

The summation may be quite large, so you should output it in modulo   109+7 .
 

Input
The input contains multiple test cases.

For each test case, the first line contains one positive integers
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值