浙大1350The Drunk Jailer 问题能转化成n以内多少个平方数?为啥还是WA#includeint main( ){long sum,n,i,k;scanf("%ld",&n);for(i=0;i
来源:学生作业学帮网 编辑:学帮网 时间:2024/06/01 07:02:58
浙大1350The Drunk Jailer 问题能转化成n以内多少个平方数?为啥还是WA
#include
int main( )
{
long sum,n,i,k;
scanf("%ld",&n);
for(i=0;i
你给的代码没看懂
#include
#define MAXNUM 101
int opened[MAXNUM] = {0};
int main()
{
int i,j;
for(i=1;i
for(j=i;j
opened[j] = !opened[j];
}
}
for(i=1;i
while(i--)
{
scanf("%d",&j);
printf("%d\n",opened[j]);
}
}
#include
int main( )
{
long sum,n,i,k,a,b;
scanf("%ld",&n);
for(i=0;i
sum=0;
scanf("%ld",&a);
for(k=1;k<=a;k++)
全部展开
#include
int main( )
{
long sum,n,i,k,a,b;
scanf("%ld",&n);
for(i=0;i
sum=0;
scanf("%ld",&a);
for(k=1;k<=a;k++)
{
if((k*k)<=a)
sum=sum+1;
}
printf("%ld\n",sum);
}
return 0;
}
你的就差一点点哦!!!!
收起
浙大1350The Drunk Jailer 问题能转化成n以内多少个平方数?为啥还是WA#includeint main( ){long sum,n,i,k;scanf(%ld,&n);for(i=0;i
In short,it is imperative that legislative measures should be taken by the authority to punish drunk drivers severely such as suspending their driving licenses or even putting them into jail.
英语翻译In short,it is imperative that legislative measures should be taken by the authority to punish drunk drivers severely such as suspending their driving licenses or even putting them into jail.
drunk
drunk
drunk
The street drunk,crying,bloody ,.
the danger of drunk drinving
go to jail和go to the jail的区别急求!!!
At last the prisoner got out of the jail.
drive the drunk out of the bar
the water isn't fit______.A,drinking B,drunk C,to drink D,to be drunk,
What's the meaning of the word 'drunk',dad?
翻译The crowd broke into cheers and the drunk bowed.
翻译How was the drunk removed from the ring?
the bull had been paying attention to the drunk
翻译he was accused of robbing the bank and sentenced ten years in jail
where was the drunk watch lost 翻译成中文