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 |
---|---|---|---|---|---|---|
1017 | Codeforces Round 502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2) | FINISHED | False | 9600 | 203702087 | Aug. 8, 2018, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3596 ) | D | The Wu | PROGRAMMING | bitmasks brute force data structures | 1900 |
B'Childan is making up a legendary story and trying to sell his forgery -- a necklace with a strong sense of "Wu" to the Kasouras. But Mr. Kasoura is challenging the truth of Childan 's story. So he is going to ask a few questions about Childan 's so-called "personal treasure" necklace. This "personal treasure" is a multiset S of m "01-strings". A "01-string" is a string that contains n characters "0" and "1". For example, if n=4 , strings "0110", "0000", and "1110" are "01-strings", but "00110" (there are 5 characters, not 4 ) and "zero" (unallowed characters) are not. Note that the multiset S can contain equal elements. Frequently, Mr. Kasoura will provide a "01-string" t and ask Childan how many strings s are in the multiset S such that the "Wu" value of the pair (s, t) is not greater than k . Mrs. Kasoura and Mr. Kasoura think that if s_i = t_i ( 1 <= q i <= q n ) then the "Wu" value of the character pair equals to w_i , otherwise 0 . The "Wu" value of the "01-string" pair is the sum of the "Wu" values of every character pair. Note that the length of every "01-string" is equal to n . For example, if w=[4, 5, 3, 6] , "Wu" of ("1001", "1100") is 7 because these strings have equal characters only on the first and third positions, so w_1+w_3=4+3=7 . You need to help Childan to answer Mr. Kasoura 's queries. That is to find the number of strings in the multiset S such that the "Wu" value of the pair is not greater than k . The first line contains three integers n , m , and q ( 1 <= q n <= q 12 , 1 <= q q, m <= q 5 cdot 10^5 ) -- the length of the "01-strings", the size of the multiset S , and the number of queries. The second line contains n integers w_1, w_2, ldots, w_n ( 0 <= w_i <= 100 ) -- the value of the i -th caracter. Each of the next m lines contains the "01-string" s '... |
Разбор (англ.) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
51096715 | NBAH | D | March 9, 2019, 4:50 p.m. | OK | Clang++17 Diagnostics | TESTS | 24 | 1325 | 16691200 | 1900 | |
69187716 | hos.lyric | D | Jan. 20, 2020, 12:31 p.m. | OK | D | TESTS | 24 | 779 | 22528000 | 1900 | |
41667808 | rr_ | D | Aug. 17, 2018, 1:44 a.m. | OK | D | TESTS | 24 | 1029 | 11878400 | 1900 | |
41667771 | rr_ | D | Aug. 17, 2018, 1:42 a.m. | OK | D | TESTS | 24 | 1029 | 11878400 | 1900 | |
41667826 | rr_ | D | Aug. 17, 2018, 1:45 a.m. | OK | D | TESTS | 24 | 1357 | 11878400 | 1900 | |
41371247 | ruban | D | Aug. 8, 2018, 5:45 p.m. | OK | Delphi | TESTS | 24 | 1824 | 150220800 | 1900 | |
41371303 | ruban | D | Aug. 8, 2018, 5:46 p.m. | OK | Delphi | TESTS | 24 | 1840 | 150220800 | 1900 | |
41828340 | __ShaW | D | Aug. 19, 2018, 1:17 p.m. | OK | FPC | TESTS | 24 | 1950 | 1740800 | 1900 | |
41368420 | newbieski | D | Aug. 8, 2018, 4:27 p.m. | OK | GNU C | TESTS | 24 | 514 | 1740800 | 1900 | |
41374416 | gfonn | D | Aug. 8, 2018, 7:31 p.m. | OK | GNU C | TESTS | 24 | 1076 | 1740800 | 1900 | |
41370601 | BumbleBee | D | Aug. 8, 2018, 5:33 p.m. | OK | GNU C | TESTS | 24 | 1200 | 1740800 | 1900 | |
41388989 | hangyesheng | D | Aug. 9, 2018, 7:29 a.m. | OK | GNU C++ | TESTS | 24 | 202 | 7270400 | 1900 | |
41588576 | hangyesheng | D | Aug. 14, 2018, 12:50 p.m. | OK | GNU C++ | TESTS | 24 | 249 | 6963200 | 1900 | |
41388908 | hangyesheng | D | Aug. 9, 2018, 7:26 a.m. | OK | GNU C++ | TESTS | 24 | 265 | 6963200 | 1900 | |
41359357 | Joky_02 | D | Aug. 8, 2018, 3:29 p.m. | OK | GNU C++ | TESTS | 24 | 311 | 5836800 | 1900 | |
41366478 | test616.cpp | D | Aug. 8, 2018, 4:10 p.m. | OK | GNU C++ | TESTS | 24 | 358 | 3276800 | 1900 | |
41360339 | 2609108028 | D | Aug. 8, 2018, 3:32 p.m. | OK | GNU C++ | TESTS | 24 | 374 | 18022400 | 1900 | |
41357992 | JATC | D | Aug. 8, 2018, 3:23 p.m. | OK | GNU C++ | TESTS | 24 | 421 | 32972800 | 1900 | |
41377802 | _CZH | D | Aug. 8, 2018, 11:05 p.m. | OK | GNU C++ | TESTS | 24 | 421 | 102400000 | 1900 | |
41389665 | vincent163 | D | Aug. 9, 2018, 7:49 a.m. | OK | GNU C++ | TESTS | 24 | 436 | 2048000 | 1900 | |
41379610 | shivering | D | Aug. 9, 2018, 1:19 a.m. | OK | GNU C++ | TESTS | 24 | 436 | 2150400 | 1900 | |
48514880 | mmmod_lqs | D | Jan. 18, 2019, 2:51 a.m. | OK | GNU C++11 | TESTS | 24 | 109 | 22016000 | 1900 | |
41381259 | CMXRYNP | D | Aug. 9, 2018, 2:26 a.m. | OK | GNU C++11 | TESTS | 24 | 139 | 12595200 | 1900 | |
41417872 | diogo | D | Aug. 10, 2018, 5:32 a.m. | OK | GNU C++11 | TESTS | 24 | 155 | 1740800 | 1900 | |
41373147 | FlyNN67 | D | Aug. 8, 2018, 6:43 p.m. | OK | GNU C++11 | TESTS | 24 | 171 | 1740800 | 1900 | |
41390028 | Joker1010123 | D | Aug. 9, 2018, 7:59 a.m. | OK | GNU C++11 | TESTS | 24 | 171 | 8396800 | 1900 | |
41371724 | will7101 | D | Aug. 8, 2018, 5:58 p.m. | OK | GNU C++11 | TESTS | 24 | 218 | 1740800 | 1900 | |
42750185 | Anson529 | D | Sept. 11, 2018, 12:42 a.m. | OK | GNU C++11 | TESTS | 24 | 218 | 1843200 | 1900 | |
41509827 | Keynman | D | Aug. 12, 2018, 1:16 a.m. | OK | GNU C++11 | TESTS | 24 | 233 | 102297600 | 1900 | |
52754850 | petrescu | D | April 14, 2019, 4:10 p.m. | OK | GNU C++11 | TESTS | 24 | 249 | 1536000 | 1900 | |
41682869 | hhhjhy | D | Aug. 17, 2018, 12:10 p.m. | OK | GNU C++11 | TESTS | 24 | 280 | 13004800 | 1900 | |
41375205 | wleung_bvg | D | Aug. 8, 2018, 8:08 p.m. | OK | GNU C++14 | TESTS | 24 | 187 | 1740800 | 1900 | |
42972520 | hicodeworld | D | Sept. 17, 2018, 7:29 a.m. | OK | GNU C++14 | TESTS | 24 | 187 | 2048000 | 1900 | |
49134626 | wleung_bvg | D | Jan. 29, 2019, 6:57 a.m. | OK | GNU C++14 | TESTS | 24 | 233 | 1740800 | 1900 | |
41408279 | wleung_bvg | D | Aug. 9, 2018, 6:09 p.m. | OK | GNU C++14 | TESTS | 24 | 233 | 1740800 | 1900 | |
41372317 | Navick | D | Aug. 8, 2018, 6:17 p.m. | OK | GNU C++14 | TESTS | 24 | 358 | 9523200 | 1900 | |
47537591 | Roohi | D | Dec. 27, 2018, 3:55 a.m. | OK | GNU C++14 | TESTS | 24 | 374 | 1945600 | 1900 | |
41412924 | Vfire | D | Aug. 9, 2018, 10:21 p.m. | OK | GNU C++14 | TESTS | 24 | 374 | 4915200 | 1900 | |
41426052 | sas | D | Aug. 10, 2018, 9:21 a.m. | OK | GNU C++14 | TESTS | 24 | 389 | 3993600 | 1900 | |
42262162 | godspeedcurry | D | Aug. 30, 2018, 4:10 a.m. | OK | GNU C++14 | TESTS | 24 | 389 | 24678400 | 1900 | |
42262011 | godspeedcurry | D | Aug. 30, 2018, 4:02 a.m. | OK | GNU C++14 | TESTS | 24 | 389 | 24678400 | 1900 | |
42721557 | ReaLNero1 | D | Sept. 10, 2018, 2:10 a.m. | OK | GNU C++17 | TESTS | 24 | 124 | 6246400 | 1900 | |
41378960 | LiChenKoh | D | Aug. 9, 2018, 12:43 a.m. | OK | GNU C++17 | TESTS | 24 | 218 | 67481600 | 1900 | |
41361191 | gepardo | D | Aug. 8, 2018, 3:36 p.m. | OK | GNU C++17 | TESTS | 24 | 373 | 9420800 | 1900 | |
41365924 | _Kee | D | Aug. 8, 2018, 4:05 p.m. | OK | GNU C++17 | TESTS | 24 | 374 | 2048000 | 1900 | |
41359133 | hermano95 | D | Aug. 8, 2018, 3:27 p.m. | OK | GNU C++17 | TESTS | 24 | 374 | 3072000 | 1900 | |
41357897 | BlackTools | D | Aug. 8, 2018, 3:23 p.m. | OK | GNU C++17 | TESTS | 24 | 389 | 2150400 | 1900 | |
41377780 | Hossam | D | Aug. 8, 2018, 11:03 p.m. | OK | GNU C++17 | TESTS | 24 | 390 | 1740800 | 1900 | |
41375531 | Young_god | D | Aug. 8, 2018, 8:25 p.m. | OK | GNU C++17 | TESTS | 24 | 390 | 1740800 | 1900 | |
41375072 | madn | D | Aug. 8, 2018, 8:01 p.m. | OK | GNU C++17 | TESTS | 24 | 405 | 1740800 | 1900 | |
54080737 | quake0 | D | May 14, 2019, 2:49 a.m. | OK | GNU C++17 | TESTS | 24 | 405 | 2048000 | 1900 | |
41948589 | chandan5284 | D | Aug. 21, 2018, 9:17 p.m. | OK | Java 8 | TESTS | 24 | 451 | 0 | 1900 | |
60428595 | StayAwayFromBitches | D | Sept. 12, 2019, 8:43 a.m. | OK | Java 8 | TESTS | 24 | 483 | 0 | 1900 | |
44174845 | donli | D | Oct. 12, 2018, 8:18 a.m. | OK | Java 8 | TESTS | 24 | 530 | 0 | 1900 | |
50654940 | mikkk | D | March 1, 2019, 7:08 p.m. | OK | Java 8 | TESTS | 24 | 545 | 0 | 1900 | |
49513065 | mennafadali | D | Feb. 5, 2019, 10:09 p.m. | OK | Java 8 | TESTS | 24 | 545 | 0 | 1900 | |
41412740 | mathmaniac | D | Aug. 9, 2018, 10:05 p.m. | OK | Java 8 | TESTS | 24 | 545 | 0 | 1900 | |
57301513 | Sleep | D | July 19, 2019, 12:11 a.m. | OK | Java 8 | TESTS | 24 | 576 | 0 | 1900 | |
44103994 | donli | D | Oct. 11, 2018, 8:04 a.m. | OK | Java 8 | TESTS | 24 | 577 | 0 | 1900 | |
41368156 | alexyz | D | Aug. 8, 2018, 4:25 p.m. | OK | Java 8 | TESTS | 24 | 592 | 0 | 1900 | |
41508652 | hack1nt0 | D | Aug. 11, 2018, 11:46 p.m. | OK | Java 8 | TESTS | 24 | 607 | 0 | 1900 | |
41407630 | user32 | D | Aug. 9, 2018, 5:46 p.m. | OK | Kotlin | TESTS | 24 | 1653 | 0 | 1900 | |
41370287 | wodesuck | D | Aug. 8, 2018, 4:44 p.m. | OK | MS C++ | TESTS | 24 | 436 | 7372800 | 1900 | |
41362482 | Khazhak | D | Aug. 8, 2018, 3:43 p.m. | OK | MS C++ | TESTS | 24 | 530 | 4198400 | 1900 | |
41366295 | math957963 | D | Aug. 8, 2018, 4:08 p.m. | OK | MS C++ | TESTS | 24 | 545 | 39424000 | 1900 | |
41368110 | NateRiverxkh | D | Aug. 8, 2018, 4:24 p.m. | OK | MS C++ | TESTS | 24 | 545 | 86118400 | 1900 | |
46007160 | vjudge4 | D | Nov. 20, 2018, 5:39 p.m. | OK | MS C++ | TESTS | 24 | 857 | 2048000 | 1900 | |
41906603 | nik1998 | D | Aug. 20, 2018, 2:57 p.m. | OK | MS C++ | TESTS | 24 | 997 | 7782400 | 1900 | |
41360156 | lxn | D | Aug. 8, 2018, 3:32 p.m. | OK | MS C++ | TESTS | 24 | 1076 | 134656000 | 1900 | |
41366359 | Spiritum | D | Aug. 8, 2018, 4:09 p.m. | OK | MS C++ | TESTS | 24 | 1123 | 6246400 | 1900 | |
43825170 | vjudge2 | D | Oct. 5, 2018, 11:28 a.m. | OK | MS C++ | TESTS | 24 | 1153 | 1843200 | 1900 | |
44278142 | LoneFox | D | Oct. 14, 2018, 12:52 a.m. | OK | MS C++ | TESTS | 24 | 1169 | 1945600 | 1900 | |
63913696 | shebao | D | Oct. 31, 2019, 9:16 a.m. | OK | MS C++ 2017 | TESTS | 24 | 1356 | 3379200 | 1900 | |
41436222 | orailly | D | Aug. 10, 2018, 3:16 p.m. | OK | PyPy 3 | TESTS | 24 | 1793 | 157286400 | 1900 | |
41410110 | wadissimo | D | Aug. 9, 2018, 7:31 p.m. | OK | PyPy 3 | TESTS | 24 | 1965 | 9318400 | 1900 | |
44093901 | titia | D | Oct. 10, 2018, 9:31 p.m. | OK | PyPy 3 | TESTS | 24 | 1996 | 88064000 | 1900 | |
63654808 | vjudge2 | D | Oct. 28, 2019, 12:24 p.m. | OK | Rust | TESTS | 24 | 452 | 103116800 | 1900 | |
63663842 | sansen | D | Oct. 28, 2019, 2:39 p.m. | OK | Rust | TESTS | 24 | 467 | 103116800 | 1900 | |
63652557 | vjudge2 | D | Oct. 28, 2019, 11:49 a.m. | OK | Rust | TESTS | 24 | 1091 | 103116800 | 1900 |
Back to search problems