# 4063: [Cerc2012]Darts

## 4063: [Cerc2012]Darts

Time Limit: 10 Sec  Memory Limit: 128 MB

Submit: 85  Solved: 53

[Submit][Status][Discuss]

## Sample Input

1 5 32 -39 71 89 -60 80 0 0 196 89

29

## Source

AC程序如下

``` 1 /**************************************************************
2     Problem: 4063
3     User: HansBug
4     Language: Pascal
5     Result: Accepted
6     Time:1372 ms
7     Memory:224 kb
8 ****************************************************************/
9
10 var i,j,k,l,m,n,ans:longint;
11 function doit(x,y:longint):longint;
12          var z,i:longint;
13          begin
14               doit:=0;z:=x*x+y*y;
15               for i:=10 downto 1 do if z<=(400*(11-i)*(11-i)) then exit(i)
16          end;
17 begin
19      for i:=1 to m do
20          begin
22               for j:=1 to n do
23                   begin
25                        inc(ans,doit(k,l));
26                   end;
27               writeln(ans);
28          end;
29 end.```

``` 1 /**************************************************************
2     Problem: 4063
3     User: HansBug
4     Language: Pascal
6 ****************************************************************/
7 var i,j,k,l,m,n,ans:longint;
8 function doit(x,y:longint):longint;
9          begin
10               doit:=(10-(trunc(sqrt(sqr(x)+sqr(y)))-1) div 20);
11               if doit<0 then doit:=0;
12          end;
13 begin
15      for i:=1 to m do
16          begin
18               for j:=1 to n do
19                   begin
21                        inc(ans,doit(k,l));
22                   end;
23               writeln(ans);
24          end;
25 end.```

251 篇文章37 人订阅

0 条评论

## 相关文章

### Keras tutorialThe Happy House

Why are we using Keras? Keras was developed to enable deep learning engineers to...

10810

### HDU 3078 Network

Problem Description The ALPC company is now working on his own network system,...

35870

### BZOJ 1800: [Ahoi2009]fly 飞行棋【思维题，n^4大暴力】

1800: [Ahoi2009]fly 飞行棋 Time Limit: 10 Sec  Memory Limit: 64 MB Submit: 1689  So...

31080

18940

### POJ--1050--To the Max（线性动规，最大子矩阵和）

To the Max Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 4...

37650

### 复杂网络（1）--图论的基本理论

1 图论的基本概念 1.1 图（graph）及其分类 （1） 图的定义：图是由点集V={vi}以及V中元素无序对的集合E={ek}所构成的二元组，记为G=(...

286100

1K50

### FAST Algorithm for Corner Detection

We saw several feature detectors and many of them are really good. But when look...

9310

35360

281100