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 |
---|---|---|---|---|---|---|
1847 | Codeforces Round 882 (Div. 2) | FINISHED | False | 8100 | 43169099 | July 6, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13001 ) | C | Vampiric Powers, anyone? | PROGRAMMING | bitmasks brute force data structures dp greedy |
B"DIO knows that the Stardust Crusaders have determined his location and will be coming to fight him. To foil their plans he decides to send out some Stand users to fight them. Initially, he summoned n Stand users with him, the i -th one having a strength of a_i . Using his vampiric powers, he can do the following as many times as he wishes: where the operator oplus denotes the bitwise XOR operation. Unfortunately for DIO, by using Hermit Purple's divination powers, the Crusaders know that he is plotting this, and they also know the strengths of the original Stand users. Help the Crusaders find the maximum possible strength of a Stand user among all possible ways that DIO can summon. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ,000 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) xe2 x80 x93 the number of Stand users initially summoned. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i < 2^8 ) xe2 x80 x93 the strength of each Stand user. It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test case, output a single integer, maximum strength of a Stand user among all possible ways that DIO can summon. In the first test case, one of the ways to add new Stand users is as follows: In the second test case, DIO does not need to add more Stand users because 3 is the maximum strength of a Stand user DIO can summon. "... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
212448275 | lAMaLOSER | C | July 6, 2023, 4:48 p.m. | OK | C# 10 | TESTS | 75 | 280 | 7475200 | ||
212495498 | AutumnMist | C | July 7, 2023, 3:09 a.m. | OK | C# 10 | TESTS | 77 | 482 | 6963200 | ||
212495366 | AutumnMist | C | July 7, 2023, 3:07 a.m. | OK | C# 10 | TESTS | 77 | 748 | 13004800 | ||
212480511 | 1435730 | C | July 6, 2023, 10:54 p.m. | OK | GNU C11 | TESTS | 76 | 93 | 409600 | ||
212487422 | CLOCKS_PER_SEC | C | July 7, 2023, 1:20 a.m. | OK | GNU C++14 | TESTS | 76 | 31 | 26419200 | ||
212498894 | CLOCKS_PER_SEC | C | July 7, 2023, 3:50 a.m. | OK | GNU C++14 | TESTS | 77 | 31 | 26419200 | ||
212499350 | CLOCKS_PER_SEC | C | July 7, 2023, 3:56 a.m. | OK | GNU C++14 | TESTS | 77 | 31 | 26419200 | ||
212499197 | CLOCKS_PER_SEC | C | July 7, 2023, 3:54 a.m. | OK | GNU C++14 | TESTS | 77 | 31 | 26419200 | ||
212498376 | CLOCKS_PER_SEC | C | July 7, 2023, 3:44 a.m. | OK | GNU C++14 | TESTS | 77 | 31 | 26419200 | ||
212448776 | NgJaBach | C | July 6, 2023, 4:49 p.m. | OK | GNU C++14 | TESTS | 75 | 46 | 0 | ||
212487110 | Anasui | C | July 7, 2023, 1:15 a.m. | OK | GNU C++14 | TESTS | 76 | 46 | 409600 | ||
212446955 | BzjrLuo | C | July 6, 2023, 4:45 p.m. | OK | GNU C++14 | TESTS | 75 | 46 | 409600 | ||
212487035 | Youxinranw | C | July 7, 2023, 1:14 a.m. | OK | GNU C++14 | TESTS | 76 | 46 | 2252800 | ||
212454503 | LGyxj | C | July 6, 2023, 6 p.m. | OK | GNU C++14 | TESTS | 75 | 46 | 6860800 | ||
212475069 | Shahd_Mohamed230 | C | July 6, 2023, 9:14 p.m. | OK | GNU C++17 | TESTS | 76 | 46 | 204800 | ||
212471998 | hegazy23 | C | July 6, 2023, 8:32 p.m. | OK | GNU C++17 | TESTS | 76 | 46 | 204800 | ||
212456256 | chan_uuu | C | July 6, 2023, 6:10 p.m. | OK | GNU C++17 | TESTS | 75 | 46 | 409600 | ||
212486114 | ForcaBarcelona | C | July 7, 2023, 12:56 a.m. | OK | GNU C++17 | TESTS | 76 | 46 | 512000 | ||
212470740 | mr_krishna | C | July 6, 2023, 8:15 p.m. | OK | GNU C++17 | TESTS | 76 | 46 | 512000 | ||
212470539 | mr_krishna | C | July 6, 2023, 8:12 p.m. | OK | GNU C++17 | TESTS | 76 | 46 | 512000 | ||
212447289 | goodbee | C | July 6, 2023, 4:46 p.m. | OK | GNU C++17 | TESTS | 75 | 46 | 512000 | ||
212447740 | Sabbir.Hasan | C | July 6, 2023, 4:47 p.m. | OK | GNU C++17 | TESTS | 75 | 46 | 614400 | ||
212475032 | downfall | C | July 6, 2023, 9:14 p.m. | OK | GNU C++17 | TESTS | 76 | 46 | 819200 | ||
212455161 | rishigodre14 | C | July 6, 2023, 6:03 p.m. | OK | GNU C++17 | TESTS | 75 | 46 | 921600 | ||
212466413 | Abs_ | C | July 6, 2023, 7:26 p.m. | OK | GNU C++17 (64) | TESTS | 76 | 31 | 409600 | ||
212466760 | Abs_ | C | July 6, 2023, 7:30 p.m. | OK | GNU C++17 (64) | TESTS | 76 | 31 | 409600 | ||
212459156 | samyaksk10 | C | July 6, 2023, 6:31 p.m. | OK | GNU C++17 (64) | TESTS | 76 | 31 | 3174400 | ||
212484172 | hhux | C | July 7, 2023, 12:14 a.m. | OK | GNU C++17 (64) | TESTS | 76 | 31 | 5222400 | ||
212467737 | sischu74 | C | July 6, 2023, 7:40 p.m. | OK | GNU C++17 (64) | TESTS | 76 | 46 | 0 | ||
212508559 | nipungoyal03 | C | July 7, 2023, 5:57 a.m. | OK | GNU C++17 (64) | TESTS | 77 | 46 | 409600 | ||
212503785 | LXH-cat | C | July 7, 2023, 4:57 a.m. | OK | GNU C++17 (64) | TESTS | 77 | 46 | 409600 | ||
212503206 | Gabi88 | C | July 7, 2023, 4:49 a.m. | OK | GNU C++17 (64) | TESTS | 77 | 46 | 409600 | ||
212503094 | yzzhh | C | July 7, 2023, 4:48 a.m. | OK | GNU C++17 (64) | TESTS | 77 | 46 | 409600 | ||
212482316 | orzcoder | C | July 6, 2023, 11:33 p.m. | OK | GNU C++17 (64) | TESTS | 76 | 46 | 409600 | ||
212459740 | yousef.3la2 | C | July 6, 2023, 6:36 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 0 | ||
212508038 | Al-Hassan_Mohamed | C | July 7, 2023, 5:51 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 31 | 0 | ||
212465034 | AL70SSAIN | C | July 6, 2023, 7:11 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 0 | ||
212463110 | waleedalaa511 | C | July 6, 2023, 7:08 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 0 | ||
212460176 | yousef.3la2 | C | July 6, 2023, 6:40 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 0 | ||
212459072 | Mr_Turtle_ | C | July 6, 2023, 6:30 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 0 | ||
212465723 | daniel_jk3455 | C | July 6, 2023, 7:18 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 102400 | ||
212492856 | WaitingForMe | C | July 7, 2023, 2:38 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 31 | 409600 | ||
212491584 | phoenix0423 | C | July 7, 2023, 2:23 a.m. | OK | GNU C++20 (64) | TESTS | 77 | 31 | 409600 | ||
212459464 | OHKG | C | July 6, 2023, 6:33 p.m. | OK | GNU C++20 (64) | TESTS | 76 | 31 | 409600 | ||
212446817 | katomasao | C | July 6, 2023, 4:44 p.m. | OK | Haskell | TESTS | 75 | 373 | 10547200 | ||
212458998 | sad_truant | C | July 6, 2023, 6:29 p.m. | OK | Java 11 | TESTS | 76 | 234 | 0 | ||
212458901 | sheath_n_sword | C | July 6, 2023, 6:29 p.m. | OK | Java 11 | TESTS | 76 | 280 | 0 | ||
212442398 | RealSpineFreezer_1410 | C | July 6, 2023, 4:32 p.m. | OK | Java 11 | TESTS | 75 | 311 | 40448000 | ||
212508664 | kasiru_69 | C | July 7, 2023, 5:58 a.m. | OK | Java 11 | TESTS | 77 | 312 | 0 | ||
212453861 | shojin_pro | C | July 6, 2023, 5:56 p.m. | OK | Java 11 | TESTS | 75 | 326 | 39526400 | ||
212506663 | vishal_sahu | C | July 7, 2023, 5:36 a.m. | OK | Java 11 | TESTS | 77 | 420 | 0 | ||
212470782 | samiulhaque | C | July 6, 2023, 8:16 p.m. | OK | Java 11 | TESTS | 76 | 421 | 0 | ||
212466527 | dannyshing | C | July 6, 2023, 7:27 p.m. | OK | Java 11 | TESTS | 76 | 467 | 0 | ||
212456833 | butteronpoptart | C | July 6, 2023, 6:14 p.m. | OK | Java 11 | TESTS | 75 | 483 | 0 | ||
212448141 | amank12 | C | July 6, 2023, 4:48 p.m. | OK | Java 11 | TESTS | 75 | 577 | 0 | ||
212442224 | medos2000 | C | July 6, 2023, 4:32 p.m. | OK | Java 17 | TESTS | 75 | 233 | 716800 | ||
212473345 | Vrutik_2809 | C | July 6, 2023, 8:50 p.m. | OK | Java 17 | TESTS | 76 | 248 | 614400 | ||
212506469 | r3hab.rs | C | July 7, 2023, 5:33 a.m. | OK | Java 17 | TESTS | 77 | 265 | 819200 | ||
212474923 | InfinitePath | C | July 6, 2023, 9:12 p.m. | OK | Java 17 | TESTS | 76 | 280 | 42291200 | ||
212444992 | one_line | C | July 6, 2023, 4:40 p.m. | OK | Java 17 | TESTS | 75 | 295 | 409600 | ||
212455528 | ShivanRawat19 | C | July 6, 2023, 6:06 p.m. | OK | Java 17 | TESTS | 75 | 295 | 819200 | ||
212459396 | mcrash12 | C | July 6, 2023, 6:33 p.m. | OK | Java 17 | TESTS | 76 | 327 | 512000 | ||
212460988 | ManasR_2003 | C | July 6, 2023, 6:47 p.m. | OK | Java 17 | TESTS | 76 | 405 | 1228800 | ||
212447376 | durgeshpoint111 | C | July 6, 2023, 4:46 p.m. | OK | Java 17 | TESTS | 75 | 451 | 921600 | ||
212500612 | Prime369 | C | July 7, 2023, 4:13 a.m. | OK | Java 17 | TESTS | 77 | 560 | 512000 | ||
212448317 | RahulAhuja2901 | C | July 6, 2023, 4:48 p.m. | OK | Java 8 | TESTS | 75 | 124 | 0 | ||
212465902 | NerfThis | C | July 6, 2023, 7:21 p.m. | OK | Java 8 | TESTS | 76 | 155 | 0 | ||
212490432 | the_unseen | C | July 7, 2023, 2:08 a.m. | OK | Java 8 | TESTS | 77 | 171 | 0 | ||
212460143 | 999ms_Clutch | C | July 6, 2023, 6:39 p.m. | OK | Java 8 | TESTS | 76 | 187 | 39116800 | ||
212506902 | thesuperRL | C | July 7, 2023, 5:39 a.m. | OK | Java 8 | TESTS | 77 | 202 | 0 | ||
212500669 | dineshsharmanit7 | C | July 7, 2023, 4:14 a.m. | OK | Java 8 | TESTS | 77 | 327 | 0 | ||
212456606 | priyaroy3370 | C | July 6, 2023, 6:12 p.m. | OK | Java 8 | TESTS | 75 | 405 | 0 | ||
212506051 | priyaroy3370 | C | July 7, 2023, 5:28 a.m. | OK | Java 8 | TESTS | 77 | 436 | 0 | ||
212497225 | roeyr | C | July 7, 2023, 3:29 a.m. | OK | Java 8 | TESTS | 77 | 451 | 0 | ||
212476984 | toufique_husein | C | July 6, 2023, 9:47 p.m. | OK | Java 8 | TESTS | 76 | 545 | 0 | ||
212495706 | return_myself | C | July 7, 2023, 3:11 a.m. | OK | MS C++ 2017 | TESTS | 77 | 109 | 819200 | ||
212492357 | 22561940340 | C | July 7, 2023, 2:32 a.m. | OK | MS C++ 2017 | TESTS | 77 | 202 | 409600 | ||
212494260 | gr1940 | C | July 7, 2023, 2:55 a.m. | OK | MS C++ 2017 | TESTS | 77 | 233 | 409600 | ||
212488608 | 1434314294 | C | July 7, 2023, 1:39 a.m. | OK | MS C++ 2017 | TESTS | 76 | 280 | 2457600 | ||
212444083 | xinxin_ouo | C | July 6, 2023, 4:37 p.m. | OK | MS C++ 2017 | TESTS | 75 | 577 | 1638400 | ||
212444500 | ahtoh_ | C | July 6, 2023, 4:38 p.m. | OK | Node.js | TESTS | 75 | 155 | 5939200 | ||
212504196 | jvatsal0709 | C | July 7, 2023, 5:03 a.m. | OK | PyPy 3 | TESTS | 77 | 296 | 9011200 | ||
212460967 | Yash_Nandwana | C | July 6, 2023, 6:47 p.m. | OK | PyPy 3 | TESTS | 76 | 312 | 9523200 | ||
212443997 | andy0liang | C | July 6, 2023, 4:37 p.m. | OK | PyPy 3 | TESTS | 75 | 358 | 10342400 | ||
212445298 | amitjoshi24 | C | July 6, 2023, 4:40 p.m. | OK | PyPy 3 | TESTS | 75 | 904 | 12185600 | ||
212466419 | gardengnome | C | July 6, 2023, 7:26 p.m. | OK | PyPy 3-64 | TESTS | 76 | 124 | 13516800 | ||
212458786 | AKKAN | C | July 6, 2023, 6:28 p.m. | OK | PyPy 3-64 | TESTS | 76 | 124 | 13516800 | ||
212498905 | samchen123 | C | July 7, 2023, 3:50 a.m. | OK | PyPy 3-64 | TESTS | 77 | 124 | 13619200 | ||
212465810 | gardengnome | C | July 6, 2023, 7:20 p.m. | OK | PyPy 3-64 | TESTS | 76 | 155 | 13516800 | ||
212498509 | bjy | C | July 7, 2023, 3:45 a.m. | OK | PyPy 3-64 | TESTS | 77 | 170 | 11468800 | ||
212476947 | Harry_yash | C | July 6, 2023, 9:47 p.m. | OK | PyPy 3-64 | TESTS | 76 | 171 | 13619200 | ||
212497850 | bjy | C | July 7, 2023, 3:37 a.m. | OK | PyPy 3-64 | TESTS | 77 | 187 | 10547200 | ||
212498994 | bjy | C | July 7, 2023, 3:51 a.m. | OK | PyPy 3-64 | TESTS | 77 | 202 | 10547200 | ||
212474961 | Harry_yash | C | July 6, 2023, 9:13 p.m. | OK | PyPy 3-64 | TESTS | 76 | 202 | 13926400 | ||
212480763 | codicon | C | July 6, 2023, 11 p.m. | OK | PyPy 3-64 | TESTS | 76 | 217 | 13619200 | ||
212479172 | dejandenib | C | July 6, 2023, 10:27 p.m. | OK | Python 3 | TESTS | 76 | 234 | 11366400 | ||
212478950 | dejandenib | C | July 6, 2023, 10:24 p.m. | OK | Python 3 | TESTS | 76 | 249 | 11366400 | ||
212478930 | dejandenib | C | July 6, 2023, 10:23 p.m. | OK | Python 3 | TESTS | 76 | 249 | 11366400 | ||
212442930 | hhuuson97 | C | July 6, 2023, 4:34 p.m. | OK | Python 3 | TESTS | 75 | 249 | 11366400 | ||
212449108 | Faithnhope | C | July 6, 2023, 4:49 p.m. | OK | Python 3 | TESTS | 75 | 810 | 10956800 | ||
212456943 | shayonp | C | July 6, 2023, 6:14 p.m. | OK | Python 3 | TESTS | 75 | 920 | 10035200 | ||
212479149 | dejandenib | C | July 6, 2023, 10:27 p.m. | OK | Python 3 | TESTS | 76 | 967 | 11366400 | ||
212477180 | dejandenib | C | July 6, 2023, 9:51 p.m. | OK | Python 3 | TESTS | 76 | 967 | 11980800 | ||
212478386 | dejandenib | C | July 6, 2023, 10:13 p.m. | OK | Python 3 | TESTS | 76 | 982 | 10035200 | ||
212479130 | dejandenib | C | July 6, 2023, 10:27 p.m. | OK | Python 3 | TESTS | 76 | 982 | 11366400 |
Back to search problems