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 |
---|---|---|---|---|---|---|
1710 | Codeforces Round 810 (Div. 1) | FINISHED | False | 7200 | 73149899 | July 24, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1391 ) | C | XOR Triangle | PROGRAMMING | bitmasks dp |
B'You are given a positive integer n . Since n may be very large, you are given its binary representation. You should compute the number of triples (a,b,c) with 0 <= q a,b,c <= q n such that a oplus b , b oplus c , and a oplus c are the sides of a non-degenerate triangle. Here, oplus denotes the bitwise XOR operation. You should output the answer modulo 998 ,244 ,353 . Three positive values x , y , and z are the sides of a non-degenerate triangle if and only if x+y>z , x+z>y , and y+z>x . The first and only line contains the binary representation of an integer n ( 0 < n < 2^{200 ,000} ) without leading zeros. For example, the string 10 is the binary representation of the number 2 , while the string 1010 represents the number 10 . Print one integer -- the number of triples (a,b,c) satisfying the conditions described in the statement modulo 998 ,244 ,353 . In the first test case, 101_2=5 . The 6 permutations of each of these two triples are all the valid triples, thus the answer is 12 . In the third test case, 11 ,011 ,111 ,101 ,010 ,010_2=114 ,514 . The full answer (before taking the modulo) is 1 ,466 ,408 ,118 ,808 ,164 . '... |
Codeforces Round #810 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
165564637 | hos.lyric | C | July 24, 2022, 3:27 p.m. | OK | D | TESTS | 19 | 171 | 4198400 | ||
165623785 | win10 | C | July 25, 2022, 3:17 a.m. | OK | GNU C++14 | TESTS | 19 | 31 | 8704000 | ||
165561514 | Alfnov | C | July 24, 2022, 3:19 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 6656000 | ||
165586947 | suyiheng | C | July 24, 2022, 4:34 p.m. | OK | GNU C++14 | TESTS | 19 | 46 | 13004800 | ||
165586586 | BeyondHeaven | C | July 24, 2022, 4:34 p.m. | OK | GNU C++14 | TESTS | 19 | 78 | 8089600 | ||
165560355 | bilibilitdasc | C | July 24, 2022, 3:16 p.m. | OK | GNU C++14 | TESTS | 19 | 78 | 25907200 | ||
165564893 | Suiseiseki | C | July 24, 2022, 3:28 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 204800 | ||
165579264 | cyh_toby | C | July 24, 2022, 4:11 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 1024000 | ||
165565985 | ugly2333 | C | July 24, 2022, 3:31 p.m. | OK | GNU C++14 | TESTS | 19 | 124 | 58163200 | ||
165583656 | PurpleWonder | C | July 24, 2022, 4:25 p.m. | OK | GNU C++14 | TESTS | 19 | 140 | 51507200 | ||
165574355 | zhylj | C | July 24, 2022, 3:55 p.m. | OK | GNU C++14 | TESTS | 19 | 156 | 7372800 | ||
165622721 | 123abda | C | July 25, 2022, 3 a.m. | OK | GNU C++17 | TESTS | 19 | 31 | 11776000 | ||
165615304 | william555 | C | July 25, 2022, 12:49 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 204800 | ||
165629254 | Rekam123 | C | July 25, 2022, 4:57 a.m. | OK | GNU C++17 | TESTS | 19 | 46 | 512000 | ||
165565611 | Flying2022 | C | July 24, 2022, 3:30 p.m. | OK | GNU C++17 | TESTS | 19 | 46 | 7475200 | ||
165557009 | zihouzhong | C | July 24, 2022, 3:07 p.m. | OK | GNU C++17 | TESTS | 19 | 109 | 512000 | ||
165573287 | moe.tsuki | C | July 24, 2022, 3:52 p.m. | OK | GNU C++17 | TESTS | 19 | 109 | 19353600 | ||
165559492 | zemen | C | July 24, 2022, 3:13 p.m. | OK | GNU C++17 | TESTS | 19 | 124 | 52224000 | ||
165591914 | patou | C | July 24, 2022, 5:47 p.m. | OK | GNU C++17 | TESTS | 19 | 171 | 512000 | ||
165564453 | heno239 | C | July 24, 2022, 3:26 p.m. | OK | GNU C++17 | TESTS | 19 | 171 | 8908800 | ||
165591695 | xiaoziyaoo | C | July 24, 2022, 5:46 p.m. | OK | GNU C++17 | TESTS | 19 | 171 | 23756800 | ||
165628897 | timmyfeng | C | July 25, 2022, 4:50 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 15 | 512000 | ||
165629146 | timmyfeng | C | July 25, 2022, 4:56 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 31 | 512000 | ||
165581423 | TLEwpdus | C | July 24, 2022, 4:18 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 31 | 6656000 | ||
165621056 | MarkBcc168 | C | July 25, 2022, 2:34 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 31 | 11673600 | ||
165613957 | Noble_Mushtak | C | July 25, 2022, 12:13 a.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 512000 | ||
165607484 | Benq | C | July 24, 2022, 9:18 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 512000 | ||
165574724 | BurnedChicken | C | July 24, 2022, 3:57 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 512000 | ||
165579311 | xcyle | C | July 24, 2022, 4:11 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 46 | 13004800 | ||
165553742 | orzdevinwang | C | July 24, 2022, 2:59 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 62 | 33075200 | ||
165584143 | lyfzxy1314 | C | July 24, 2022, 4:27 p.m. | OK | GNU C++17 (64) | TESTS | 19 | 77 | 38707200 | ||
165570582 | AndreySergunin | C | July 24, 2022, 3:44 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 30 | 512000 | ||
165586310 | Akulyat | C | July 24, 2022, 4:33 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 512000 | ||
165564785 | orz | C | July 24, 2022, 3:28 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 31 | 4710400 | ||
165577432 | dreamoon_love_AA | C | July 24, 2022, 4:05 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 46 | 512000 | ||
165578778 | Ormlis | C | July 24, 2022, 4:09 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 46 | 2150400 | ||
165578975 | wind_whisper | C | July 24, 2022, 4:10 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 46 | 13004800 | ||
165576504 | SSerxhs | C | July 24, 2022, 4:02 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 46 | 36659200 | ||
165556516 | A_G | C | July 24, 2022, 3:05 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 77 | 15564800 | ||
165578117 | PinkieRabbit | C | July 24, 2022, 4:07 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 78 | 1433600 | ||
165586082 | ZhouShang2003 | C | July 24, 2022, 4:32 p.m. | OK | GNU C++20 (64) | TESTS | 19 | 78 | 13004800 | ||
165583361 | Hakiobo | C | July 24, 2022, 4:24 p.m. | OK | Kotlin 1.4 | TESTS | 19 | 389 | 43008000 | ||
165579138 | arvindf232 | C | July 24, 2022, 4:11 p.m. | OK | Kotlin 1.6 | TESTS | 19 | 545 | 1126400 | ||
165594602 | r57shell | C | July 24, 2022, 6:09 p.m. | OK | MS C++ 2017 | TESTS | 19 | 904 | 204800 | ||
165568748 | chinerist | C | July 24, 2022, 3:38 p.m. | OK | PyPy 3-64 | TESTS | 19 | 701 | 46489600 | ||
165585836 | taiga0629 | C | July 24, 2022, 4:32 p.m. | OK | PyPy 3-64 | TESTS | 19 | 3993 | 212275200 | ||
165568410 | sansen | C | July 24, 2022, 3:37 p.m. | OK | Rust 2021 | TESTS | 19 | 109 | 716800 | ||
165585742 | apilat | C | July 24, 2022, 4:31 p.m. | OK | Rust 2021 | TESTS | 19 | 343 | 105984000 |
Back to search problems