网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
12月21日漏签0天
c语言吧 关注:801,594贴子:4,373,778
  • 看贴

  • 图片

  • 吧主推荐

  • 视频

  • 游戏

  • 2回复贴,共1页
<<返回c语言吧
>0< 加载中...

求教

  • 只看楼主
  • 收藏

  • 回复
  • 贴吧用户_7R9t6NW
  • 便当
    3
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
A good number is defined as all digits in decimal system are between 1 and 9, inclusive. The value of one good number can be calculate as follow:
Insert + into some of the positions (possibly none) between two digits.
After insertion, this good number can be evaluated as formulas, and the result is S.
The value is sum of S of all possible legal insertion. The legal insertion is that any two neighbor digits can insert no more than one ‘+’. Inserting before the first digit or after the last digit is illegal.
Alfa wants you to calculate the value.
Input
The first line is an integer T(1≤T≤52), which indicates the number of testcases.
For each testcase:
The one line of the input file contains a good number N。
N的位数小于100000位切大于等于1位;(是N的位数小于100000位,不是指N的值小于100000)
N is positive integer.
Output
For each testcase, your program should output the value of the good number mod 1e9+7.


  • 讠朱仙
  • 团子家族
    10
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
看不懂


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 2回复贴,共1页
<<返回c语言吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示