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 |
---|---|---|---|---|---|---|
1761 | Pinely Round 1 (Div. 1 + Div. 2) | FINISHED | False | 9000 | 62868299 | Nov. 20, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2481 ) | D | Carry Bit | PROGRAMMING | bitmasks brute force combinatorics dp math |
B'Let f(x,y) be the number of carries of x+y in binary (i. e. f(x,y)=g(x)+g(y)-g(x+y) , where g(x) is the number of ones in the binary representation of x ). Given two integers n and k , find the number of ordered pairs (a,b) such that 0 <= q a,b < 2^n , and f(a,b) equals k . Note that for a ne b , (a,b) and (b,a) are considered as two different pairs. As this number may be large, output it modulo 10^9+7 . The only line of each test contains two integers n and k ( 0 <= q k<n <= q 10^6 ). Output a single integer -- the answer modulo 10^9+7 . Here are some examples for understanding carries: begin{aligned} & begin{array}{r} 1_{ }1_{ }1 + _{1}1_{ }0_{ }0 hline 1_{ }0_{ }1_{ }1 end{array} & begin{array}{r} 1_{ }0_{ }1 + _{ }0_{ }0_{1}1 hline 0_{ }1_{ }1_{ }0 end{array} & & begin{array}{r} 1_{ }0_{ }1 + _{1}0_{1}1_{1}1 hline 1_{ }0_{ }0_{ }0 end{array} end{aligned} So f(7,4)=1 , f(5,1)=1 and f(5,3)=3 . In the first test case, all the pairs meeting the constraints are (1,1),(1,5),(2,2),(2,3),(3,2),(4,4),(4,5),(4,6),(4,7),(5,1),(5,4),(5,6),(6,4),(6,5),(7,4) . '... |
Pinely Round 1 (Div. 1 + Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
181834675 | Tdyx | D | Nov. 21, 2022, 2:33 a.m. | OK | C# 10 | TESTS | 43 | 358 | 6963200 | ||
181788628 | KumaTachiRen | D | Nov. 20, 2022, 4:07 p.m. | OK | C# 8 | TESTS | 43 | 296 | 35328000 | ||
181789538 | Gassa | D | Nov. 20, 2022, 4:10 p.m. | OK | D | TESTS | 43 | 343 | 105062400 | ||
181818946 | rainboy | D | Nov. 20, 2022, 8:10 p.m. | OK | GNU C11 | TESTS | 43 | 124 | 16076800 | ||
181793897 | XG0000 | D | Nov. 20, 2022, 4:29 p.m. | OK | GNU C++14 | TESTS | 43 | 93 | 11980800 | ||
181808788 | MatheusLealV | D | Nov. 20, 2022, 6:15 p.m. | OK | GNU C++14 | TESTS | 43 | 93 | 24064000 | ||
181790006 | shdut0901 | D | Nov. 20, 2022, 4:12 p.m. | OK | GNU C++14 | TESTS | 43 | 108 | 11980800 | ||
181800577 | Valters07 | D | Nov. 20, 2022, 4:59 p.m. | OK | GNU C++14 | TESTS | 43 | 108 | 12083200 | ||
181793572 | ETK. | D | Nov. 20, 2022, 4:28 p.m. | OK | GNU C++14 | TESTS | 43 | 108 | 24064000 | ||
181797847 | leiyuanze | D | Nov. 20, 2022, 4:47 p.m. | OK | GNU C++14 | TESTS | 43 | 108 | 24064000 | ||
181798805 | Yakumo_Ran | D | Nov. 20, 2022, 4:52 p.m. | OK | GNU C++14 | TESTS | 43 | 109 | 24064000 | ||
181800575 | LeeCongWei | D | Nov. 20, 2022, 4:59 p.m. | OK | GNU C++14 | TESTS | 43 | 109 | 24064000 | ||
181796698 | ButterflyDew | D | Nov. 20, 2022, 4:42 p.m. | OK | GNU C++14 | TESTS | 43 | 109 | 82227200 | ||
181833883 | nalemy | D | Nov. 21, 2022, 2:13 a.m. | OK | GNU C++14 | TESTS | 43 | 124 | 12083200 | ||
181789161 | Aging1986 | D | Nov. 20, 2022, 4:09 p.m. | OK | GNU C++17 | TESTS | 43 | 78 | 12083200 | ||
181831029 | zhangguangxuan99 | D | Nov. 21, 2022, 12:53 a.m. | OK | GNU C++17 | TESTS | 43 | 78 | 12288000 | ||
181837583 | Lskkkno3 | D | Nov. 21, 2022, 3:40 a.m. | OK | GNU C++17 | TESTS | 43 | 93 | 12083200 | ||
181788195 | TIZNASMOJAAZRA | D | Nov. 20, 2022, 4:05 p.m. | OK | GNU C++17 | TESTS | 43 | 93 | 16076800 | ||
181815653 | staler444 | D | Nov. 20, 2022, 7:28 p.m. | OK | GNU C++17 | TESTS | 43 | 93 | 24064000 | ||
181818388 | swagchicken | D | Nov. 20, 2022, 8:02 p.m. | OK | GNU C++17 | TESTS | 43 | 93 | 24064000 | ||
181830724 | SonTungMtp | D | Nov. 21, 2022, 12:45 a.m. | OK | GNU C++17 | TESTS | 43 | 93 | 48128000 | ||
181823525 | celin | D | Nov. 20, 2022, 9:26 p.m. | OK | GNU C++17 | TESTS | 43 | 109 | 11980800 | ||
181788231 | Radin_Zahedi | D | Nov. 20, 2022, 4:05 p.m. | OK | GNU C++17 | TESTS | 43 | 109 | 12083200 | ||
181842619 | Sara.S. | D | Nov. 21, 2022, 5:29 a.m. | OK | GNU C++17 | TESTS | 43 | 109 | 16076800 | ||
181812093 | Tanvir71 | D | Nov. 20, 2022, 6:48 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 31 | 16076800 | ||
181837206 | leexzq | D | Nov. 21, 2022, 3:31 a.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 11980800 | ||
181822791 | lunchbox | D | Nov. 20, 2022, 9:11 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 11980800 | ||
181787796 | Lonely. | D | Nov. 20, 2022, 4:03 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 11980800 | ||
181785898 | MelacauV1.5 | D | Nov. 20, 2022, 3:56 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 11980800 | ||
181843576 | CSHwang | D | Nov. 21, 2022, 5:48 a.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 11980800 | ||
181785558 | enslaved | D | Nov. 20, 2022, 3:55 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 12083200 | ||
181787981 | Lain | D | Nov. 20, 2022, 4:04 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 15155200 | ||
181811871 | jack112739 | D | Nov. 20, 2022, 6:45 p.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 23961600 | ||
181842160 | real_Godot | D | Nov. 21, 2022, 5:20 a.m. | OK | GNU C++17 (64) | TESTS | 43 | 46 | 24064000 | ||
181835661 | jeff_qi | D | Nov. 21, 2022, 2:54 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 31 | 11980800 | ||
181835548 | jeff_qi | D | Nov. 21, 2022, 2:51 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 31 | 11980800 | ||
181788726 | LXl491214 | D | Nov. 20, 2022, 4:07 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 31 | 12083200 | ||
181828300 | mohamedeltair | D | Nov. 20, 2022, 11:28 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 31 | 19968000 | ||
181801464 | Alphagocc | D | Nov. 20, 2022, 5:02 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 31 | 26112000 | ||
181797929 | lzr_010506 | D | Nov. 20, 2022, 4:48 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 46 | 11980800 | ||
181791212 | Grey_Crane_Is_Here | D | Nov. 20, 2022, 4:17 p.m. | OK | GNU C++20 (64) | TESTS | 43 | 46 | 11980800 | ||
181841333 | yuexia | D | Nov. 21, 2022, 5:02 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 46 | 12083200 | ||
181838405 | Haven_ | D | Nov. 21, 2022, 3:58 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 46 | 12083200 | ||
181837867 | codeboycb | D | Nov. 21, 2022, 3:47 a.m. | OK | GNU C++20 (64) | TESTS | 43 | 46 | 12083200 | ||
181830311 | dunkingdonuts | D | Nov. 21, 2022, 12:33 a.m. | OK | Java 11 | TESTS | 43 | 420 | 40448000 | ||
181791984 | insert_cool_handle | D | Nov. 20, 2022, 4:21 p.m. | OK | Java 11 | TESTS | 43 | 436 | 16281600 | ||
181841791 | dzhi | D | Nov. 21, 2022, 5:13 a.m. | OK | Java 11 | TESTS | 43 | 763 | 0 | ||
181841546 | dzhi | D | Nov. 21, 2022, 5:07 a.m. | OK | Java 11 | TESTS | 43 | 764 | 0 | ||
181795798 | earl_of_byteland | D | Nov. 20, 2022, 4:38 p.m. | OK | Java 17 | TESTS | 43 | 857 | 41164800 | ||
181794886 | O_E | D | Nov. 20, 2022, 4:33 p.m. | OK | Java 8 | TESTS | 43 | 265 | 22118400 | ||
181787832 | fetetriste | D | Nov. 20, 2022, 4:04 p.m. | OK | Java 8 | TESTS | 43 | 389 | 38092800 | ||
181806794 | SecondThread | D | Nov. 20, 2022, 5:59 p.m. | OK | Java 8 | TESTS | 43 | 405 | 54169600 | ||
181805730 | frey4 | D | Nov. 20, 2022, 5:52 p.m. | OK | Java 8 | TESTS | 43 | 935 | 22118400 | ||
181792417 | timusmanovs | D | Nov. 20, 2022, 4:23 p.m. | OK | MS C++ 2017 | TESTS | 43 | 140 | 12083200 | ||
181805372 | shobonvip | D | Nov. 20, 2022, 5:50 p.m. | OK | PyPy 3-64 | TESTS | 43 | 187 | 49459200 | ||
181790996 | eepsilon | D | Nov. 20, 2022, 4:16 p.m. | OK | PyPy 3-64 | TESTS | 43 | 218 | 19660800 | ||
181798904 | asdsasd | D | Nov. 20, 2022, 4:52 p.m. | OK | PyPy 3-64 | TESTS | 43 | 218 | 80076800 | ||
181808441 | shobonvip | D | Nov. 20, 2022, 6:12 p.m. | OK | PyPy 3-64 | TESTS | 43 | 248 | 49152000 | ||
181798528 | misorin | D | Nov. 20, 2022, 4:51 p.m. | OK | PyPy 3-64 | TESTS | 43 | 327 | 124825600 | ||
181840828 | Neothehero | D | Nov. 21, 2022, 4:52 a.m. | OK | PyPy 3-64 | TESTS | 43 | 358 | 4915200 | ||
181795075 | huangxw | D | Nov. 20, 2022, 4:34 p.m. | OK | PyPy 3-64 | TESTS | 43 | 358 | 45670400 | ||
181814839 | anuj_negi | D | Nov. 20, 2022, 7:19 p.m. | OK | PyPy 3-64 | TESTS | 43 | 436 | 28672000 | ||
181834621 | Little_Sheep_Yawn | D | Nov. 21, 2022, 2:31 a.m. | OK | PyPy 3-64 | TESTS | 43 | 561 | 52736000 | ||
181834533 | Little_Sheep_Yawn | D | Nov. 21, 2022, 2:29 a.m. | OK | PyPy 3-64 | TESTS | 43 | 763 | 52633600 | ||
181835911 | Spheniscine | D | Nov. 21, 2022, 2:59 a.m. | OK | Rust 2021 | TESTS | 43 | 61 | 12083200 | ||
181805528 | Shinonome_Ena | D | Nov. 20, 2022, 5:51 p.m. | OK | Rust 2021 | TESTS | 43 | 514 | 16076800 |
Back to search problems