Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
40
|
Codeforces Beta Round 39 |
FINISHED |
False |
7200 |
442850399 |
Nov. 5, 2010, 4 p.m. |
Problems
B"Last year the world's largest square was built in Berland. It is known that the square can be represented as an infinite plane with an introduced Cartesian system of coordinates. On that square two sets of concentric circles were painted. Let's call the set of concentric circles with radii 1, xe2 x80 x892, xe2 x80 x89..., xe2 x80 x89K and the center in the point (z, xe2 x80 x890) a (K, xe2 x80 x89z)-set. Thus, on the square were painted a (N, xe2 x80 x89x)-set and a (M, xe2 x80 x89y)-set. You have to find out how many parts those sets divided the square into. The first line contains integers N, xe2 x80 x89x, xe2 x80 x89M, xe2 x80 x89y. (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N, xe2 x80 x89M xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000, xe2 x80 x89 xe2 x80 x89- xe2 x80 x89100000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x, xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000, xe2 x80 x89x xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89y). Print the sought number of parts. Picture for the third sample:"... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
179486 |
tourist |
C |
Nov. 5, 2010, 5:19 p.m. |
OK |
Delphi |
TESTS |
73 |
30 |
819200 |
|
2200 |
180159 |
mimirrow |
C |
Nov. 5, 2010, 5:59 p.m. |
OK |
Delphi |
TESTS |
73 |
50 |
921600 |
|
2200 |
179732 |
sevenkplus |
C |
Nov. 5, 2010, 5:35 p.m. |
OK |
FPC |
TESTS |
73 |
30 |
819200 |
|
2200 |
179738 |
scottai1 |
C |
Nov. 5, 2010, 5:35 p.m. |
OK |
GNU C |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179503 |
panyuchao |
C |
Nov. 5, 2010, 5:20 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179491 |
Progger |
C |
Nov. 5, 2010, 5:19 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179446 |
Copymaster |
C |
Nov. 5, 2010, 5:17 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179430 |
Steps09 |
C |
Nov. 5, 2010, 5:15 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179418 |
username17920 |
C |
Nov. 5, 2010, 5:14 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179325 |
2222 |
C |
Nov. 5, 2010, 5:08 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179310 |
Ra16bit |
C |
Nov. 5, 2010, 5:08 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
180051 |
nodchip |
C |
Nov. 5, 2010, 5:55 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
180020 |
Seemann |
C |
Nov. 5, 2010, 5:53 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179971 |
mmaxio |
C |
Nov. 5, 2010, 5:50 p.m. |
OK |
GNU C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
180047 |
anhdt |
C |
Nov. 5, 2010, 5:55 p.m. |
OK |
Java 6 |
TESTS |
73 |
80 |
43315200 |
|
2200 |
179577 |
Petr |
C |
Nov. 5, 2010, 5:25 p.m. |
OK |
Java 6 |
TESTS |
73 |
80 |
43315200 |
|
2200 |
179151 |
Rei |
C |
Nov. 5, 2010, 4:59 p.m. |
OK |
Java 6 |
TESTS |
73 |
80 |
43315200 |
|
2200 |
178899 |
SpookyCookie |
C |
Nov. 5, 2010, 4:47 p.m. |
OK |
Java 6 |
TESTS |
73 |
80 |
43315200 |
|
2200 |
178854 |
winger |
C |
Nov. 5, 2010, 4:45 p.m. |
OK |
Java 6 |
TESTS |
73 |
80 |
43315200 |
|
2200 |
179358 |
MaxBuzz |
C |
Nov. 5, 2010, 5:11 p.m. |
OK |
Java 6 |
TESTS |
73 |
470 |
43315200 |
|
2200 |
179437 |
tanzaku |
C |
Nov. 5, 2010, 5:16 p.m. |
OK |
Mono C# |
TESTS |
73 |
130 |
39321600 |
|
2200 |
179570 |
abkqz |
C |
Nov. 5, 2010, 5:25 p.m. |
OK |
MS C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179374 |
DStepanenko |
C |
Nov. 5, 2010, 5:12 p.m. |
OK |
MS C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179201 |
Anton_Lunyov |
C |
Nov. 5, 2010, 5:02 p.m. |
OK |
MS C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
178989 |
AleX |
C |
Nov. 5, 2010, 4:52 p.m. |
OK |
MS C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179798 |
Commandos |
C |
Nov. 5, 2010, 5:40 p.m. |
OK |
MS C++ |
TESTS |
73 |
30 |
1331200 |
|
2200 |
179827 |
Igor_Kudryashov |
C |
Nov. 5, 2010, 5:42 p.m. |
OK |
MS C++ |
TESTS |
73 |
50 |
17408000 |
|
2200 |
remove filters
Back to search problems