int deg[40]= {6,13,13,4,4,18,18,1,1,20,20,5,5,12,12,9,9,14,14,11,11,8,8,16,16,7,7,19,19,3,3,17,17,2,2,15,15,10,10,6};
int bull, double_start, double_end, triple_start, triple_end;
int degree,distance;
int n;
int result;
scanf("%d", &T); //Codeground 시스템에서는 C++ 에서도 scanf 사용을 권장합니다.
for(test_case = 1; test_case <= T; ++test_case) {
result=0;
scanf("%d %d %d %d %d",&bull,&triple_start,&triple_end,&double_start,&double_end);
scanf("%d",&n);
for(int i=0;i<n;i++){
int x,y,tempscore;
scanf("%d %d",&x,&y);
degree =(int)(atan2(y,x)*180 / M_PI);
if(degree<0)degree=360+degree;
distance =(int)(sqrt(x*x+y*y));
tempscore=deg[degree/9];
if(distance<bull)tempscore=50;
else if(distance>triple_start && distance<triple_end)tempscore=3*tempscore;
else if(distance>double_start && distance<double_end)tempscore=2*tempscore;
else if(distance>double_end)tempscore=0;
result=tempscore+result;
}
// 이 부분에서 정답을 출력하십시오. Codeground 시스템에서는 C++ 에서도 printf 사용을 권장합니다.
printf("Case #%d\n", test_case);
printf("%d\n", result);
}
머가 잘못된거냐
// 코세 성님은 printf, scanf를 안 씁니다. 느려터져서 직접 짜서 씁니다. 그리고 인라인 어셈블리를 이용해 극한의 최적화를 합니다.
??먼말이냐
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
콘솔로 짤일 없으니 귀찮을땐 암거나 쓰지 뭘.
뭐가틀린거냐 ㅅㅂ.........
정작 아무도 답 안해줌. 프갤 수준 ㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋ
다트문제 재미없어서 넘겼는데...