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 |
|---|---|---|---|---|---|---|
| 10 | Codeforces Beta Round 10 | FINISHED | False | 7200 | 504972880 | April 15, 2010, 3:45 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1695 ) | C | Digital Root | PROGRAMMING | number theory | 2000 |
Not long ago Billy came across such a problem, where there were given three natural numbers A , B and C from the range 1, N , and it was asked to check whether the equation AB = C is correct. Recently Billy studied the concept of a digital root of a number. We should remind you that a digital root d ( x ) of the number x is the sum s ( x ) of all the digits of this number, if s ( x ) ≤ 9 , otherwise it is d ( s ( x )) . For example, a digital root of the number 6543 is calculated as follows: d (6543) = d (6 + 5 + 4 + 3) = d (18) = 9 . Billy has counted that the digital root of a product of numbers is equal to the digital root of the product of the factors' digital roots, i.e. d ( xy ) = d ( d ( x ) d ( y )) . And the following solution to the problem came to his mind: to calculate the digital roots and check if this condition is met. However, Billy has doubts that this condition is sufficient. That's why he asks you to find out the amount of test examples for the given problem such that the algorithm proposed by Billy makes mistakes. The first line contains the only number N ( 1 ≤ N ≤ 10 6 ). Output one number — the amount of required A , B and C from the range 1, N . For the first sample the required triples are (3, 4, 3) and (4, 3, 3) . |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 44855 | bearf | C | April 15, 2010, 5:29 p.m. | OK | Delphi | TESTS | 40 | 50 | 819200 | 2000 | |
| 43864 | andrewzta | C | April 15, 2010, 4:20 p.m. | OK | Delphi | TESTS | 40 | 50 | 819200 | 2000 | |
| 43384 | tourist | C | April 15, 2010, 4 p.m. | OK | Delphi | TESTS | 40 | 50 | 819200 | 2000 | |
| 44183 | GlebsHP | C | April 15, 2010, 4:38 p.m. | OK | Delphi | TESTS | 40 | 130 | 4915200 | 2000 | |
| 43651 | romanandreev | C | April 15, 2010, 4:10 p.m. | OK | Delphi | TESTS | 40 | 170 | 6860800 | 2000 | |
| 44364 | subscriber | C | April 15, 2010, 4:52 p.m. | OK | Delphi | TESTS | 40 | 550 | 4812800 | 2000 | |
| 44165 | Topspin26 | C | April 15, 2010, 4:37 p.m. | OK | Delphi | TESTS | 40 | 920 | 4915200 | 2000 | |
| 43993 | yt_72 | C | April 15, 2010, 4:28 p.m. | OK | FPC | TESTS | 40 | 160 | 5427200 | 2000 | |
| 44560 | SNU | C | April 15, 2010, 5:05 p.m. | OK | FPC | TESTS | 40 | 190 | 9011200 | 2000 | |
| 44772 | trash_account | C | April 15, 2010, 5:23 p.m. | OK | FPC | TESTS | 40 | 520 | 21094400 | 2000 | |
| 44628 | flash_mt | C | April 15, 2010, 5:11 p.m. | OK | FPC | TESTS | 40 | 550 | 2764800 | 2000 | |
| 43785 | LayCurse | C | April 15, 2010, 4:16 p.m. | OK | GNU C | TESTS | 40 | 80 | 1331200 | 2000 | |
| 44594 | eduardische | C | April 15, 2010, 5:08 p.m. | OK | GNU C | TESTS | 40 | 90 | 1331200 | 2000 | |
| 44842 | vexorian | C | April 15, 2010, 5:27 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44297 | SirShokoladina | C | April 15, 2010, 4:46 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44280 | hbagherinezhad | C | April 15, 2010, 4:45 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44146 | slycelote | C | April 15, 2010, 4:36 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44033 | mmaxio | C | April 15, 2010, 4:29 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 43873 | LemonTree | C | April 15, 2010, 4:21 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44813 | icyrhyme | C | April 15, 2010, 5:25 p.m. | OK | GNU C++ | TESTS | 40 | 30 | 5324800 | 2000 | |
| 44595 | chnlkw | C | April 15, 2010, 5:08 p.m. | OK | GNU C++ | TESTS | 40 | 50 | 1331200 | 2000 | |
| 44285 | nima | C | April 15, 2010, 4:45 p.m. | OK | GNU C++ | TESTS | 40 | 50 | 1331200 | 2000 | |
| 43912 | hos.lyric | C | April 15, 2010, 4:23 p.m. | OK | GNU C++ | TESTS | 40 | 50 | 1331200 | 2000 | |
| 43692 | MaxBuzz | C | April 15, 2010, 4:12 p.m. | OK | Java 6 | TESTS | 40 | 60 | 30720000 | 2000 | |
| 45048 | S.Yesipenko | C | April 15, 2010, 5:40 p.m. | OK | Java 6 | TESTS | 40 | 80 | 30720000 | 2000 | |
| 43335 | Petr | C | April 15, 2010, 3:58 p.m. | OK | Java 6 | TESTS | 40 | 80 | 30720000 | 2000 | |
| 44675 | Sergey.Bankevich | C | April 15, 2010, 5:15 p.m. | OK | Java 6 | TESTS | 40 | 80 | 30720000 | 2000 | |
| 43862 | vot | C | April 15, 2010, 4:20 p.m. | OK | Java 6 | TESTS | 40 | 80 | 30720000 | 2000 | |
| 43703 | Efgen | C | April 15, 2010, 4:13 p.m. | OK | Java 6 | TESTS | 40 | 90 | 30720000 | 2000 | |
| 44079 | dAnton | C | April 15, 2010, 4:32 p.m. | OK | Java 6 | TESTS | 40 | 90 | 30720000 | 2000 | |
| 43991 | dev_il | C | April 15, 2010, 4:27 p.m. | OK | Java 6 | TESTS | 40 | 90 | 30720000 | 2000 | |
| 43416 | rdomj | C | April 15, 2010, 4:01 p.m. | OK | Java 6 | TESTS | 40 | 90 | 30720000 | 2000 | |
| 44630 | uwi | C | April 15, 2010, 5:11 p.m. | OK | Java 6 | TESTS | 40 | 90 | 30720000 | 2000 | |
| 44712 | Hadi_Asiaie | C | April 15, 2010, 5:17 p.m. | OK | Mono C# | TESTS | 40 | 140 | 5939200 | 2000 | |
| 43894 | ktuan | C | April 15, 2010, 4:22 p.m. | OK | Mono C# | TESTS | 40 | 230 | 5939200 | 2000 | |
| 44215 | hhb | C | April 15, 2010, 4:40 p.m. | OK | MS C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 45040 | anhdt | C | April 15, 2010, 5:39 p.m. | OK | MS C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44587 | Ripatti | C | April 15, 2010, 5:08 p.m. | OK | MS C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44004 | Kenny_HORROR | C | April 15, 2010, 4:28 p.m. | OK | MS C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 43943 | Seyaua | C | April 15, 2010, 4:25 p.m. | OK | MS C++ | TESTS | 40 | 30 | 1331200 | 2000 | |
| 44232 | NALP | C | April 15, 2010, 4:41 p.m. | OK | MS C++ | TESTS | 40 | 30 | 5324800 | 2000 | |
| 44237 | Bogdan | C | April 15, 2010, 4:42 p.m. | OK | MS C++ | TESTS | 40 | 30 | 5734400 | 2000 | |
| 44881 | Fly | C | April 15, 2010, 5:31 p.m. | OK | MS C++ | TESTS | 40 | 30 | 5836800 | 2000 | |
| 44301 | Gerald | C | April 15, 2010, 4:46 p.m. | OK | MS C++ | TESTS | 40 | 50 | 1331200 | 2000 | |
| 44083 | diver_ru | C | April 15, 2010, 4:32 p.m. | OK | MS C++ | TESTS | 40 | 50 | 1331200 | 2000 | |
| 44729 | tec | C | April 15, 2010, 5:18 p.m. | OK | Python 2 | TESTS | 40 | 230 | 18944000 | 2000 |
Back to search problems