3899 sum of power

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情

sum of power

Time Limit: 1000 ms Memory Limit: 65536 KiB
Problem Description

Calculate  mod (1000000000+7) for given nm.

Input

Input contains two integers n,m(1≤n≤1000,0≤m≤10).

Output

Output the answer in a single line.

Sample Input
10 0
Sample Output
10
Hint

#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std ; 


int main()
{
    long long n , m ; 
    cin>>n>>m;
        long long result = 0 ; 
        for(int i=1 ; i<= n ; i++)
{
            long long num = 1 ; 
            for(int j=1 ; j<=m ; j++)
{
                num = num * i %1000000007 ; 
            }
            result = (result + num ) % 1000000007 ; 
        }
        cout<<result<<endl;  
    return 0; 
}

【信息科学与工程学】【数据中心】【智算中心】第三十篇 智算中心建设05 编号类型领域子领域问题问题类型·子问题详细的数学分析(逐步推理的数学表达式 + 组合数学约束方程式)参数列表及数值范围及边界条件关联知识加工工具及软硬件及机床装备及部署模式N-3511实施智算中心空调冷媒管焊接时未抽真空导致冰堵管内残留水分结冰堵塞膨胀阀,制冷失效可靠性·Vacuum Not Drawn · 实施Step1: 冰堵概率 Pblock​=0.8,制冷量降为0。组合数学约束:系统可用性要求 A>0.999,若冰堵导致停机 Trepair​=4h,MTBF=1000h,则 A=1−4/1000=0 阅读详情

相关推荐

windows 安装 win32 win32com模块

其它方式并不奏效,可以使用如下方式: python -m pip install pypiwin32

杨鑫newlife的专栏 1万+

SDUT3899_sum of power(大数问题)

                                                    sum of power                                                Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discu...

chrishuimin的博客 295

windows关闭445、3389端口

windows下关闭443和3389

zhuoweichen1的专栏 2万+

山东省第八届ACM省赛 G 题(sum of power

Problem Description Calculate  mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10). Output Output the answer in a single line. Example Input

JW12138的博客 1323

sum of power

Problem DescriptionCalculate  mod (1000000000+7) for given n,m.InputInput contains two integers n,m(1≤n≤1000,0≤m≤10).OutputOutput the answer in a single line.Sample Input10 0 Sample Output10 HintSourc...

码农的一亩三分地 215

sum of power——大数取模

Think: 1大数取模 2相似题目——可考虑快速幂优化SDUT题目链接sum of power Time Limit: 1000MS Memory Limit: 65536KBProblem Description Calculate mod (1000000000+7) for given n,m.Input Input contains two integers n,m(1≤n≤1

BlessingXRY的博客 794

山东省第八届 ACM 省赛 sum of power(SDUT 3899

Problem Description Calculate ∑ni=1im mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10). Output Output the answer in a single line. Example Input 10 0 Exa

残云墨雪 414

山东省第八届acm大赛 G题 (SDUT 3899

sum of power Time Limit: 1000MS Memory Limit: 65536KB Problem Description Calculate  mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10).

MM__1997的博客 530

acm省赛--D sum of power快速幂

Problem Description Calculate  mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10). Output Output the answer in a single line. Example Input

Smile__wei的博客 441

ACM第八届山东省赛 G-Sum of power

G-Sum of power Time Limit: 1000 ms   Memory Limit: 65536 KiB Problem Description Calculate ∑ni=1im∑i=1nim\sum_{i=1}^n i^m mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1...

MyCyber 248

山东省第八届ACM省赛 G 题 sum of power 解答

sum of power Time Limit: 1000MS Memory Limit: 65536KB Problem Description Calculate  mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10). Output

Keep trying, keep going 400

第八届山东省赛题->sum of power

Problem Description Calculate  mod (1000000000+7) for given n,m. Input Input contains two integers n,m(1≤n≤1000,0≤m≤10). Output Output the answer in a single line. Example Input 10

jiang_1603的博客 456

(同余与模算术)sum of power

Problem DescriptionCalculate  mod (1000000000+7) for given n,m.InputInput contains two integers n,m(1≤n≤1000,0≤m≤10).OutputOutput the answer in a single line.Sample Input10 0 Sample Output10 HintSourc...

387

Win10 使用HDMI链接显示器

写这篇文章主要是网上看了很多方法都不对,针对我自己的系统截个图记录一下。 1. 确认HDMI线连接是否正确且稳固。 2. 显示器切换到对应的HDMI信号源。 3.win10的设置界面如下:“Windows设置主页”-----“系统”-----“显示”--"选择显示器双击或者标识"  ...

ion_L的博客 1万+

Win8.1 中 配置JDK + Eclipse

一:JDK安装和配置 1.JDK1.7下载地址http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

chr23899的专栏 1万+

win 2003自动登录/默认登录用户名

Windows      Server      2003      是一款服务器操作系统,自动登录会带来严重的安全隐患。 个人用户为了使用方便,可以在开始->运行中输入"control      userpasswords2"      (不含括号)     ,然后你就可以看到和      Windows      2000     一样的用户帐户管理界面,然后把“登陆系统必须

1129
上一篇: quadratic equation (余数)
下一篇: 数论 快速幂
SY_Pistachio
博客等级 码龄9年 74粉丝 272原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值