zoj2818题目 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2818 帮忙看看哪错..看完这个要觉得根本就狗屁不通,麻烦给个用c写的代码参考下.#include #include #include int main(){ int a,b,n,i,j,m,s; float
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/19 11:59:48
zoj2818题目 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2818 帮忙看看哪错..
看完这个要觉得根本就狗屁不通,麻烦给个用c写的代码参考下.
#include
#include
#include
int main()
{
int a,b,n,i,j,m,s;
float k;
while(scanf("%d%d",&b,&n)!=EOF)
{
if(b==0&&n==0)
break;
m=b-1;
s=1;
for(a=2;ab)
j=i-b;
else
j=b-i;
if(j
AC的代码
#include
#include
using namespace std;
int main()
{
long long b,n,i,a,dif,ans;
while(cin>>b>>n&&(b!=0||n!=0))
{
for(i=1,dif=a=0; ; i++)
{
a=pow(i,n);
if( a > b )
{
dif=a-b;
break;
}
}
if( b-pow(i-1,n)
zoj2818题目 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2818 帮忙看看哪错..看完这个要觉得根本就狗屁不通,麻烦给个用c写的代码参考下.#include #include #include int main(){ int a,b,n,i,j,m,s; float
acm 1008 杭电 什么意思请帮我解释一下,谢谢!题目地址 http://acm.hdu.edu.cn/showproblem.php?pid=1008
acm stars题目意思是什么
北大ACM 1993题!快要交了..实在做不出来..有没有哪位能帮忙下...谢谢啦!程序正确追加100分!绝对!题目:http://acm.pku.edu.cn/JudgeOnline/problem?id=1993
ACM注册时候的handle是什么意思,要填什么? http://acm.zju.edu.cn/onlinejudge/register.do
一道ACM题目(解释一下题意)http://acm.hrbeu.edu.cn/index.php?act=problem&proid=6060主要是这段话不理解:Factorials grow very rapidly--5! = 120, 10! = 3,628,800. One way of specifying such large numbers is by specifying the number of
英文(ACM题目)的中文翻译去哪找最好!
求解ACM题目孪生素数请用C++代码
杭电1163 怎么做?什么思路?http://acm.hdu.edu.cn/showproblem.php?pid=1163
http:
HTTP
HTTP
http:
哪里有ACM比赛的答案,哪个平台的题目都可以
ACM题目:素数求和问题描述现在给你N个数(0
hdu acm 难度分布问题杭州科技大学acm题目的难度分布是怎么样的越往后越难吗 还是?改正:是杭州电子科技大学
http://wenwen.soso.com/z/q192103489.htm上面的题目
acm是什么意思