| 记录编号 | 173631 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 292.[NOI 2000]瓷片项链 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.007 s | ||
| 提交时间 | 2015-07-29 15:10:42 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main(){
	freopen("ring.in","r",stdin);
	freopen("ring.out","w",stdout);
	double a,b,x;
	scanf("%lf%lf",&a,&b);
	x=a/b/2;
	if(x-floor(x)==0.5){
		printf("0\n");
	}
	else printf("%d\n",(int)x);
	return 0;
}