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 |
---|---|---|---|---|---|---|
1811 | Codeforces Round 863 (Div. 3) | FINISHED | False | 8100 | 56647463 | April 4, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 12786 ) | E | Living Sequence | PROGRAMMING | binary search dp math number theory |
B'In Japan, the number 4 reads like death, so Bob decided to build a live sequence. Living sequence a contains all natural numbers that do not contain the digit 4 . a = [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, ldots] . For example, the number 1235 is part of the sequence a , but the numbers 4321 , 443 are not part of the sequence a . Bob realized that he does not know how to quickly search for a particular number by the position k in the sequence, so he asks for your help. For example, if Bob wants to find the number at position k = 4 (indexing from 1 ), you need to answer a_k = 5 . The first line of input data contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. In the only line of each test case, there is a single integer k ( 1 <= k <= 10^{12} ) -- the position Bob is interested in. For each test case, print on a separate line the number a_k in indexing with 1 . '... |
114788 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
200777925 | Gassa | E | April 4, 2023, 4:44 p.m. | OK | D | TESTS | 13 | 31 | 2048000 | ||
200779922 | Gassa | E | April 4, 2023, 4:48 p.m. | OK | D | TESTS | 13 | 46 | 2048000 | ||
200815976 | NenadDapic | E | April 5, 2023, 12:01 a.m. | OK | FPC | TESTS | 18 | 186 | 0 | ||
200815865 | NenadDapic | E | April 4, 2023, 11:58 p.m. | OK | FPC | TESTS | 18 | 249 | 0 | ||
200828797 | Smallorange | E | April 5, 2023, 4:27 a.m. | OK | GNU C11 | TESTS | 18 | 78 | 0 | ||
200827383 | Smallorange | E | April 5, 2023, 4:04 a.m. | OK | GNU C11 | TESTS | 18 | 498 | 0 | ||
200830928 | zhoujk | E | April 5, 2023, 5:01 a.m. | OK | GNU C11 | TESTS | 18 | 499 | 0 | ||
200822416 | lujw | E | April 5, 2023, 2:34 a.m. | OK | GNU C11 | TESTS | 18 | 530 | 0 | ||
200826761 | being_mysterious | E | April 5, 2023, 3:54 a.m. | OK | GNU C11 | TESTS | 18 | 546 | 0 | ||
200785425 | tt_khelne_ke_liye_ye | E | April 4, 2023, 5:12 p.m. | OK | GNU C++14 | TESTS | 13 | 15 | 0 | ||
200823424 | dijiaaoteman | E | April 5, 2023, 2:53 a.m. | OK | GNU C++14 | TESTS | 18 | 15 | 0 | ||
200831301 | taro0x3f | E | April 5, 2023, 5:07 a.m. | OK | GNU C++14 | TESTS | 18 | 15 | 0 | ||
200778100 | OmarHaroon01 | E | April 4, 2023, 4:44 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 0 | ||
200782710 | udta_kouwa | E | April 4, 2023, 4:56 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 0 | ||
200780398 | jhamadhav | E | April 4, 2023, 4:48 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 0 | ||
200779029 | Abraxos | E | April 4, 2023, 4:46 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 102400 | ||
200780123 | MinhDuc_Nguyen | E | April 4, 2023, 4:48 p.m. | OK | GNU C++14 | TESTS | 13 | 30 | 204800 | ||
200832323 | zyxawa | E | April 5, 2023, 5:21 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
200830002 | zorbin | E | April 5, 2023, 4:48 a.m. | OK | GNU C++14 | TESTS | 18 | 31 | 0 | ||
200778521 | Bellman_Ford | E | April 4, 2023, 4:45 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200778253 | druidream | E | April 4, 2023, 4:44 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200780379 | Akhilendra11 | E | April 4, 2023, 4:48 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200783911 | chenjjjrrr | E | April 4, 2023, 5:03 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200784503 | of_a7 | E | April 4, 2023, 5:06 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200785511 | vishesh011 | E | April 4, 2023, 5:13 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 0 | ||
200799565 | OmieChan | E | April 4, 2023, 7:13 p.m. | OK | GNU C++17 | TESTS | 18 | 15 | 0 | ||
200783534 | and_you | E | April 4, 2023, 5:01 p.m. | OK | GNU C++17 | TESTS | 13 | 15 | 102400 | ||
200833129 | Akshay_12 | E | April 5, 2023, 5:32 a.m. | OK | GNU C++17 | TESTS | 18 | 30 | 0 | ||
200816616 | _drifter | E | April 5, 2023, 12:18 a.m. | OK | GNU C++17 | TESTS | 18 | 30 | 0 | ||
200779045 | M-Hussein | E | April 4, 2023, 4:46 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
200788349 | HCPS42 | E | April 4, 2023, 5:36 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
200822911 | yyyh | E | April 5, 2023, 2:44 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 15 | 0 | ||
200778752 | drizzle_codes | E | April 4, 2023, 4:45 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 0 | ||
200789354 | weiliang | E | April 4, 2023, 5:45 p.m. | OK | GNU C++17 (64) | TESTS | 13 | 15 | 1638400 | ||
200821949 | Vv. | E | April 5, 2023, 2:24 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 30 | 0 | ||
200814004 | Rocket13 | E | April 4, 2023, 11:07 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 30 | 0 | ||
200830327 | Hend-Sayed | E | April 5, 2023, 4:53 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 0 | ||
200834719 | importlogic | E | April 5, 2023, 5:53 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 0 | ||
200831970 | OTTFF | E | April 5, 2023, 5:16 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 31 | 0 | ||
200832701 | 4He3Liu1Shan.5Hu | E | April 5, 2023, 5:26 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 0 | 0 | ||
200831101 | Aryan_Shrivastava | E | April 5, 2023, 5:04 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200830383 | propane | E | April 5, 2023, 4:54 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200829383 | ELBerr | E | April 5, 2023, 4:38 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200826903 | Hriz | E | April 5, 2023, 3:56 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200831668 | hnust_liuyunzhi1 | E | April 5, 2023, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200831744 | mohamed.kachef2006 | E | April 5, 2023, 5:13 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200832354 | Shadow1810 | E | April 5, 2023, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200833090 | dedsec_29 | E | April 5, 2023, 5:31 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200833296 | Mohamed_abdellateef | E | April 5, 2023, 5:34 a.m. | OK | GNU C++20 (64) | TESTS | 18 | 15 | 0 | ||
200819370 | harsh.awasthi | E | April 5, 2023, 1:28 a.m. | OK | Go | TESTS | 18 | 31 | 819200 | ||
200785161 | lordvidex | E | April 4, 2023, 5:11 p.m. | OK | Go | TESTS | 13 | 46 | 921600 | ||
200799480 | liangjiahui11 | E | April 4, 2023, 7:12 p.m. | OK | Go | TESTS | 18 | 46 | 2969600 | ||
200812008 | v13 | E | April 4, 2023, 10:19 p.m. | OK | Go | TESTS | 18 | 576 | 5222400 | ||
200830797 | leoncn | E | April 5, 2023, 5 a.m. | OK | Java 11 | TESTS | 18 | 186 | 0 | ||
200822844 | djrfrn | E | April 5, 2023, 2:42 a.m. | OK | Java 11 | TESTS | 18 | 187 | 0 | ||
200791828 | sarvesh_bawari | E | April 4, 2023, 6:10 p.m. | OK | Java 11 | TESTS | 13 | 187 | 31129600 | ||
200805639 | ETHANHUNTMI5 | E | April 4, 2023, 8:32 p.m. | OK | Java 11 | TESTS | 18 | 202 | 0 | ||
200811595 | DOOMJUICE | E | April 4, 2023, 10:10 p.m. | OK | Java 11 | TESTS | 18 | 202 | 0 | ||
200822571 | the_unseen | E | April 5, 2023, 2:37 a.m. | OK | Java 11 | TESTS | 18 | 218 | 0 | ||
200791614 | sarvesh_bawari | E | April 4, 2023, 6:08 p.m. | OK | Java 11 | TESTS | 13 | 218 | 31129600 | ||
200790702 | sarvesh_bawari | E | April 4, 2023, 5:58 p.m. | OK | Java 11 | TESTS | 13 | 218 | 31129600 | ||
200779787 | rohit_8469 | E | April 4, 2023, 4:47 p.m. | OK | Java 11 | TESTS | 13 | 233 | 0 | ||
200805381 | RatkoSebez | E | April 4, 2023, 8:29 p.m. | OK | Java 11 | TESTS | 18 | 311 | 0 | ||
200787918 | Vrutik_2809 | E | April 4, 2023, 5:32 p.m. | OK | Java 17 | TESTS | 13 | 202 | 204800 | ||
200826057 | frey4 | E | April 5, 2023, 3:40 a.m. | OK | Java 17 | TESTS | 18 | 202 | 614400 | ||
200782752 | Dukkha | E | April 4, 2023, 4:56 p.m. | OK | Java 17 | TESTS | 13 | 249 | 614400 | ||
200778812 | Deependra_coder | E | April 4, 2023, 4:45 p.m. | OK | Java 17 | TESTS | 13 | 264 | 0 | ||
200801883 | Deependra_coder | E | April 4, 2023, 7:42 p.m. | OK | Java 17 | TESTS | 18 | 264 | 716800 | ||
200814442 | aruniscoding | E | April 4, 2023, 11:19 p.m. | OK | Java 17 | TESTS | 18 | 265 | 614400 | ||
200812505 | notreallysure | E | April 4, 2023, 10:30 p.m. | OK | Java 17 | TESTS | 18 | 311 | 921600 | ||
200777990 | aditisaxena | E | April 4, 2023, 4:44 p.m. | OK | Java 17 | TESTS | 13 | 327 | 409600 | ||
200780965 | DharaVivek | E | April 4, 2023, 4:49 p.m. | OK | Java 17 | TESTS | 13 | 358 | 614400 | ||
200779669 | ning1ing | E | April 4, 2023, 4:47 p.m. | OK | Java 17 | TESTS | 13 | 358 | 716800 | ||
200825535 | Kenzhezhan | E | April 5, 2023, 3:31 a.m. | OK | Java 8 | TESTS | 18 | 108 | 0 | ||
200821236 | yadavDipesh | E | April 5, 2023, 2:09 a.m. | OK | Java 8 | TESTS | 18 | 124 | 0 | ||
200787486 | rahul_81 | E | April 4, 2023, 5:28 p.m. | OK | Java 8 | TESTS | 13 | 139 | 0 | ||
200804891 | Ian_Nepomniachtchi | E | April 4, 2023, 8:22 p.m. | OK | Java 8 | TESTS | 18 | 140 | 0 | ||
200830554 | pra1hamgup1a | E | April 5, 2023, 4:56 a.m. | OK | Java 8 | TESTS | 18 | 156 | 0 | ||
200799570 | riyadas.200208 | E | April 4, 2023, 7:13 p.m. | OK | Java 8 | TESTS | 18 | 186 | 0 | ||
200777997 | depurador_ik | E | April 4, 2023, 4:44 p.m. | OK | Java 8 | TESTS | 13 | 218 | 38297600 | ||
200823006 | cys02 | E | April 5, 2023, 2:45 a.m. | OK | Java 8 | TESTS | 18 | 264 | 0 | ||
200830808 | NerfThis | E | April 5, 2023, 5 a.m. | OK | Java 8 | TESTS | 18 | 888 | 0 | ||
200813646 | gaspar.kristijan | E | April 4, 2023, 10:58 p.m. | OK | MS C++ 2017 | TESTS | 18 | 31 | 0 | ||
200798559 | Yash_Nandwana | E | April 4, 2023, 7:02 p.m. | OK | PyPy 3 | TESTS | 18 | 140 | 4403200 | ||
200787123 | bvf | E | April 4, 2023, 5:25 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 4505600 | ||
200790425 | arT_ | E | April 4, 2023, 5:56 p.m. | OK | PyPy 3 | TESTS | 13 | 171 | 6348800 | ||
200811695 | Chelovek9 | E | April 4, 2023, 10:12 p.m. | OK | PyPy 3 | TESTS | 18 | 186 | 4915200 | ||
200782332 | Chelovek9 | E | April 4, 2023, 4:54 p.m. | OK | PyPy 3 | TESTS | 13 | 280 | 6451200 | ||
200782571 | polygon__ | E | April 4, 2023, 4:55 p.m. | OK | PyPy 3 | TESTS | 13 | 296 | 4505600 | ||
200781918 | hieuka2005 | E | April 4, 2023, 4:52 p.m. | OK | PyPy 3 | TESTS | 13 | 311 | 4812800 | ||
200781671 | Owjdnnako | E | April 4, 2023, 4:51 p.m. | OK | PyPy 3 | TESTS | 13 | 326 | 6041600 | ||
200832621 | NapoleonB | E | April 5, 2023, 5:25 a.m. | OK | PyPy 3 | TESTS | 18 | 343 | 6553600 | ||
200779884 | anim2403 | E | April 4, 2023, 4:48 p.m. | OK | PyPy 3 | TESTS | 13 | 374 | 6144000 | ||
200808630 | SoleProprietor | E | April 4, 2023, 9:14 p.m. | OK | PyPy 3-64 | TESTS | 18 | 92 | 3174400 | ||
200793534 | SophieHatter | E | April 4, 2023, 6:28 p.m. | OK | PyPy 3-64 | TESTS | 18 | 93 | 5836800 | ||
200818384 | riroan | E | April 5, 2023, 1:04 a.m. | OK | PyPy 3-64 | TESTS | 18 | 93 | 6041600 | ||
200793395 | -Neel- | E | April 4, 2023, 6:26 p.m. | OK | PyPy 3-64 | TESTS | 18 | 108 | 6246400 | ||
200784858 | Peacalm | E | April 4, 2023, 5:09 p.m. | OK | PyPy 3-64 | TESTS | 13 | 108 | 7270400 | ||
200829952 | abhijeet.panihar.cse20 | E | April 5, 2023, 4:47 a.m. | OK | PyPy 3-64 | TESTS | 18 | 124 | 7372800 | ||
200786299 | Yinch | E | April 4, 2023, 5:19 p.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 8089600 | ||
200785838 | Yinch | E | April 4, 2023, 5:15 p.m. | OK | PyPy 3-64 | TESTS | 13 | 124 | 9420800 | ||
200788554 | hvbird | E | April 4, 2023, 5:38 p.m. | OK | PyPy 3-64 | TESTS | 13 | 139 | 6246400 | ||
200783120 | DonC | E | April 4, 2023, 4:58 p.m. | OK | PyPy 3-64 | TESTS | 13 | 139 | 6656000 | ||
200787579 | iamjameshi | E | April 4, 2023, 5:29 p.m. | OK | Python 3 | TESTS | 13 | 78 | 204800 | ||
200792160 | soid | E | April 4, 2023, 6:14 p.m. | OK | Python 3 | TESTS | 13 | 155 | 307200 | ||
200784282 | Mardonbekhazratov | E | April 4, 2023, 5:05 p.m. | OK | Python 3 | TESTS | 13 | 187 | 0 | ||
200780375 | lcs2020068 | E | April 4, 2023, 4:48 p.m. | OK | Python 3 | TESTS | 13 | 187 | 0 | ||
200788279 | busykid | E | April 4, 2023, 5:35 p.m. | OK | Python 3 | TESTS | 13 | 202 | 0 | ||
200787007 | aastha_7802 | E | April 4, 2023, 5:24 p.m. | OK | Python 3 | TESTS | 13 | 202 | 0 | ||
200780571 | Cralsic_123 | E | April 4, 2023, 4:49 p.m. | OK | Python 3 | TESTS | 13 | 202 | 0 | ||
200787926 | busykid | E | April 4, 2023, 5:32 p.m. | OK | Python 3 | TESTS | 13 | 218 | 0 | ||
200780525 | smanikantam | E | April 4, 2023, 4:49 p.m. | OK | Python 3 | TESTS | 13 | 218 | 0 | ||
200780248 | buttowski_1 | E | April 4, 2023, 4:48 p.m. | OK | Python 3 | TESTS | 13 | 218 | 0 | ||
200780023 | The_Ultimate_Cheater | E | April 4, 2023, 4:48 p.m. | OK | Ruby 3 | TESTS | 13 | 390 | 102400 |
Back to search problems