NYOJ 399、458、477
2014-12-02 09:20
204 查看
NYOJ 399
#include<stdio.h>
int main()
{
int n,b;
while(scanf("%d %d",&n,&b)!=EOF)
{
//printf("%d\n",n/b);
int i,t=0;
for(i=b;i<=n;i+=b)
t++;
printf("%d\n",t);
}
return 0;
}
NYOJ 458
#include <stdio.h>
int main()
{
unsigned long long t,m,temp=471;
scanf("%llu",&t);
while(t--&&scanf("%llu",&m))
printf("%llu\n",temp+1000*(m-1));
}
NYOJ 477
#include <stdio.h>
int main()
{
double t,a,b,c;
scanf("%lf",&t);
while(t--)
if(scanf("%lf%lf%lf",&a,&b,&c)&&a+b-c<0.0001&&a+b-c>-0.0001) printf("Yes\n");
else printf("No\n");
}
#include<stdio.h>
int main()
{
int n,b;
while(scanf("%d %d",&n,&b)!=EOF)
{
//printf("%d\n",n/b);
int i,t=0;
for(i=b;i<=n;i+=b)
t++;
printf("%d\n",t);
}
return 0;
}
NYOJ 458
#include <stdio.h>
int main()
{
unsigned long long t,m,temp=471;
scanf("%llu",&t);
while(t--&&scanf("%llu",&m))
printf("%llu\n",temp+1000*(m-1));
}
NYOJ 477
#include <stdio.h>
int main()
{
double t,a,b,c;
scanf("%lf",&t);
while(t--)
if(scanf("%lf%lf%lf",&a,&b,&c)&&a+b-c<0.0001&&a+b-c>-0.0001) printf("Yes\n");
else printf("No\n");
}
相关文章推荐
- nyoj 题目477 A+B Problem III
- NYOJ 477
- NYOJ-458:小光棍数
- nyoj458 A*B Problem
- NYOJ 477 A+B Problem III
- NYOJ477 - A+B Problem III
- NYOJ458 - 小光棍数
- NYOJ 399题 整除个数
- NYOJ 458 小光棍数(无奈的水题)
- NYOJ477 - A+B Problem III
- NYOJ-458 小光棍数
- nyoj 458 小光棍数
- nyoj-458-小光棍数
- NYOJ 399 整除个数
- 数论的开始[以Nyoj 458 小光棍数为例]
- NYOJ 458 小光棍数
- NYOJ 458 解题报告
- NYOJ399 - 整除个数
- nyoj458小光棍数
- NYOJ-477-A+B Problem III-2013年6月8日00:19:05