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 |
---|---|---|---|---|---|---|
747 | Codeforces Round 387 (Div. 2) | FINISHED | False | 7200 | 255066863 | Dec. 19, 2016, 2:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 429 ) | F | Igor and Interesting Numbers | PROGRAMMING | brute force combinatorics dp math | 2600 |
B'Igor likes hexadecimal notation and considers positive integer in the hexadecimal notation interesting if each digit and each letter in it appears no more than t times. For example, if t xe2 x80 x89= xe2 x80 x893, then integers 13a13322, aaa, abcdef0123456789 are interesting, but numbers aaaa, abababab and 1000000 are not interesting. Your task is to find the k-th smallest interesting for Igor integer in the hexadecimal notation. The integer should not contain leading zeros. The first line contains the two integers k and t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910) -- the number of the required integer and the maximum number of times some integer or letter can appear in interesting integer. It can be shown that the answer always exists for such constraints. Print in the hexadecimal notation the only integer that is the k-th smallest interesting integer for Igor. The first 20 interesting integers if t xe2 x80 x89= xe2 x80 x891: 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, 10, 12, 13, 14, 15. So the answer for the first example equals 12. '... |
49171 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
42066866 | rainboy | F | Aug. 24, 2018, 8:15 p.m. | OK | GNU C | TESTS | 102 | 31 | 0 | 2600 | |
42010828 | rainboy | F | Aug. 24, 2018, 12:29 a.m. | OK | GNU C | TESTS | 102 | 296 | 16691200 | 2600 | |
31115466 | vjudge5 | F | Oct. 7, 2017, 12:59 p.m. | OK | GNU C++ | TESTS | 102 | 15 | 0 | 2600 | |
31095441 | vjudge4 | F | Oct. 6, 2017, 11:58 p.m. | OK | GNU C++ | TESTS | 102 | 15 | 0 | 2600 | |
27679730 | smtcoder | F | June 8, 2017, 10:43 p.m. | OK | GNU C++ | TESTS | 102 | 15 | 0 | 2600 | |
31103203 | vjudge2 | F | Oct. 7, 2017, 7:08 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 307200 | 2600 | |
31098015 | vjudge2 | F | Oct. 7, 2017, 3:27 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 307200 | 2600 | |
31059102 | vjudge5 | F | Oct. 6, 2017, 8:03 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 409600 | 2600 | |
31058851 | vjudge4 | F | Oct. 6, 2017, 7:55 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 409600 | 2600 | |
23355133 | shirokami | F | Dec. 27, 2016, 8:23 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 1945600 | 2600 | |
31495143 | lyx_cjz | F | Oct. 19, 2017, 12:11 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 2048000 | 2600 | |
24607420 | aayushkapadia | F | Feb. 12, 2017, 11:36 a.m. | OK | GNU C++ | TESTS | 102 | 15 | 2048000 | 2600 | |
31189361 | cxt | F | Oct. 10, 2017, 12:26 p.m. | OK | GNU C++11 | TESTS | 102 | 15 | 0 | 2600 | |
31051041 | vjudge4 | F | Oct. 6, 2017, 2:32 a.m. | OK | GNU C++11 | TESTS | 102 | 15 | 0 | 2600 | |
30989151 | xhkxhk | F | Oct. 4, 2017, 10:15 a.m. | OK | GNU C++11 | TESTS | 102 | 15 | 0 | 2600 | |
29803584 | arasmus | F | Aug. 26, 2017, 10:19 a.m. | OK | GNU C++11 | TESTS | 102 | 15 | 307200 | 2600 | |
31065393 | yanyikai | F | Oct. 6, 2017, 12:28 p.m. | OK | GNU C++11 | TESTS | 102 | 15 | 409600 | 2600 | |
23126949 | YoungPhoenix | F | Dec. 19, 2016, 3:53 a.m. | OK | GNU C++11 | TESTS | 100 | 15 | 1843200 | 2600 | |
25965895 | deadpool66 | F | March 31, 2017, 12:55 a.m. | OK | GNU C++11 | TESTS | 102 | 15 | 2048000 | 2600 | |
25827152 | toster1287 | F | March 26, 2017, 8:14 p.m. | OK | GNU C++11 | TESTS | 102 | 15 | 2048000 | 2600 | |
25827141 | ericxu0 | F | March 26, 2017, 8:13 p.m. | OK | GNU C++11 | TESTS | 102 | 15 | 2048000 | 2600 | |
24289427 | shenzui | F | Jan. 31, 2017, 12:19 p.m. | OK | GNU C++11 | TESTS | 102 | 15 | 2048000 | 2600 | |
27514326 | andyshih12 | F | June 2, 2017, 3:35 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 0 | 2600 | |
27460550 | mjguru | F | May 31, 2017, 6:45 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 0 | 2600 | |
31817979 | Hiasat | F | Oct. 27, 2017, 7:48 p.m. | OK | GNU C++14 | TESTS | 102 | 15 | 102400 | 2600 | |
31936685 | ddfsb | F | Nov. 1, 2017, 2:19 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 409600 | 2600 | |
33917757 | RUSH_D_CAT | F | Jan. 5, 2018, 8:13 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
26310244 | ngfam | F | April 12, 2017, 3:21 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
26081238 | Mohammad_Yasser | F | April 2, 2017, 3:39 p.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
26076744 | Mohammad_Yasser | F | April 2, 2017, 11:32 a.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
25884649 | AhmedHamed | F | March 28, 2017, 10:46 p.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
24611877 | Splashing | F | Feb. 12, 2017, 3:35 p.m. | OK | GNU C++14 | TESTS | 102 | 15 | 1945600 | 2600 | |
68632248 | AM. | F | Jan. 12, 2020, 3:40 a.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
68563403 | AliShahali1382 | F | Jan. 10, 2020, 7:49 p.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
63739130 | Roundgod | F | Oct. 29, 2019, 4:19 p.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
62614998 | hjk1030 | F | Oct. 15, 2019, 11:10 a.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
61741212 | Umi | F | Oct. 2, 2019, 8:21 p.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
56089040 | pkgunboat | F | June 26, 2019, 2:55 p.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
53470844 | saitoasuka | F | April 28, 2019, 12:41 p.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
51479930 | gtx1080 | F | March 19, 2019, 11:09 a.m. | OK | GNU C++17 | TESTS | 102 | 31 | 0 | 2600 | |
68106520 | xiaowuc1 | F | Jan. 3, 2020, 7:22 a.m. | OK | GNU C++17 | TESTS | 102 | 31 | 102400 | 2600 | |
41951329 | w446506278 | F | Aug. 22, 2018, 1:42 a.m. | OK | GNU C++17 | TESTS | 102 | 31 | 102400 | 2600 | |
27435980 | Asgar | F | May 29, 2017, 8:43 p.m. | OK | Java 8 | TESTS | 102 | 109 | 0 | 2600 | |
23583168 | rrepeat | F | Jan. 6, 2017, 10:28 a.m. | OK | Java 8 | TESTS | 102 | 124 | 20582400 | 2600 | |
28016154 | heifrank | F | June 25, 2017, 5:23 a.m. | OK | Java 8 | TESTS | 102 | 139 | 20889600 | 2600 | |
23355058 | donli | F | Dec. 27, 2016, 8:17 a.m. | OK | Java 8 | TESTS | 102 | 140 | 20582400 | 2600 | |
23183886 | uwi | F | Dec. 20, 2016, 7:19 p.m. | OK | Java 8 | TESTS | 102 | 171 | 20582400 | 2600 | |
23544427 | IgorKoval | F | Jan. 4, 2017, 9:42 p.m. | OK | Java 8 | TESTS | 102 | 171 | 20992000 | 2600 | |
23206377 | Dukkha | F | Dec. 21, 2016, 6:14 p.m. | OK | Java 8 | TESTS | 102 | 186 | 20582400 | 2600 | |
23656747 | JialinOuyang | F | Jan. 8, 2017, 8:59 p.m. | OK | Java 8 | TESTS | 102 | 187 | 20582400 | 2600 | |
23656956 | JialinOuyang | F | Jan. 8, 2017, 9:23 p.m. | OK | Java 8 | TESTS | 102 | 202 | 20582400 | 2600 | |
23229003 | chemthan | F | Dec. 22, 2016, 3:54 p.m. | OK | Java 8 | TESTS | 102 | 280 | 20992000 | 2600 | |
24357184 | AleksanderBalobanov | F | Feb. 2, 2017, 1:50 a.m. | OK | MS C++ | TESTS | 102 | 15 | 2048000 | 2600 | |
24359132 | AleksanderBalobanov | F | Feb. 2, 2017, 7:51 a.m. | OK | MS C++ | TESTS | 102 | 31 | 2048000 | 2600 |
Back to search problems