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 |
|---|---|---|---|---|---|---|
| 1773 | 2022-2023 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 106005323 | Dec. 7, 2022, 8:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 545 ) | G | Game of Questions | PROGRAMMING | bitmasks dp math probabilities | 2800 |
Genie is taking part in an intellectual game. The game consists of (n) questions, and there are (m) participants numbered from (1) to (m). Genie is the participant number (1). For each question (i) and participant (j), it is known whether the participant will answer the question correctly or not. The goal of the game is to be the last participant staying in the game. The game is conducted as follows. First, all (n) questions get shuffled uniformly at random (all (n!) permutations are equally likely). Then, the questions are asked one by one. Each participant answers the question. If all participants still in the game answer the question correctly, or if all of them answer the question incorrectly, nothing happens. Otherwise, those participants who answer the question incorrectly lose and leave the game. After all (n) questions are asked, all participants who are still in the game are declared to be the winners. What is the probability that Genie will win the game? The first line contains two integers (n) and (m) — the number of questions and the number of participants ((1 \le n \le 2 \cdot 10^5); (2 \le m \le 17)). The (i)-th of the next (n) lines contains (m) characters (s_{i, 1}, s_{i, 2}, \ldots, s_{i, m}). Character (s_{i, j}) is ' 1 ' if participant (j) answers question (i) correctly or ' 0 ' otherwise. Print the probability that Genie will win the game. Your answer will be considered correct if its absolute or relative error does not exceed (10^{-9}). In the first example, there is a single question and Genie will answer it correctly, thus winning the game (along with participants (2) and (4)). In the second example, one participant will leave after the first asked question, and another participant will leave after the second asked question. Each participant will win with probability (\frac{1}{3}). |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 184223580 | songhaoran colazcy | G | Dec. 7, 2022, 12:39 p.m. | OK | GNU C++14 | TESTS | 33 | 639 | 177664000 | 2800 | |
| 184196857 | unputdownable myee crazy_sea | G | Dec. 7, 2022, 10:36 a.m. | OK | GNU C++14 | TESTS | 33 | 1263 | 2048000 | 2800 | |
| 184223785 | realskc User_Carrot N_z__ | G | Dec. 7, 2022, 12:41 p.m. | OK | GNU C++17 | TESTS | 33 | 514 | 357888000 | 2800 | |
| 184186448 | NiroBC JosephNZ HetaoBest | G | Dec. 7, 2022, 9:48 a.m. | OK | GNU C++17 | TESTS | 33 | 1045 | 3174400 | 2800 | |
| 184186665 | QCFium E869120 square1001 | G | Dec. 7, 2022, 9:50 a.m. | OK | GNU C++17 | TESTS | 33 | 1076 | 2457600 | 2800 | |
| 184182597 | snuke hos.lyric maroonrk | G | Dec. 7, 2022, 9:10 a.m. | OK | GNU C++17 | TESTS | 33 | 1092 | 4505600 | 2800 | |
| 184183586 | mango_lassi rivalq -is-this-fft- | G | Dec. 7, 2022, 9:19 a.m. | OK | GNU C++17 | TESTS | 33 | 1107 | 2662400 | 2800 | |
| 184223080 | .Mahdi. NullXD ArchUser84 | G | Dec. 7, 2022, 12:35 p.m. | OK | GNU C++17 | TESTS | 33 | 1341 | 519680000 | 2800 | |
| 184181049 | orzdevinwang | G | Dec. 7, 2022, 8:55 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 187 | 27545600 | 2800 | |
| 184277420 | nell_jwk | G | Dec. 8, 2022, 12:10 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 717 | 2355200 | 2800 | |
| 184187044 | 1092515503 Asuka Gary2005 | G | Dec. 7, 2022, 9:54 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 733 | 3481600 | 2800 | |
| 184193129 | gisp_zjz triple__a Roundgod | G | Dec. 7, 2022, 10:19 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 810 | 346316800 | 2800 | |
| 184218477 | cnnfls_csy MonkeyKing Alex_Wei | G | Dec. 7, 2022, 11:51 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 841 | 355225600 | 2800 | |
| 184261663 | YaoBIG | G | Dec. 7, 2022, 7:12 p.m. | OK | GNU C++17 (64) | TESTS | 33 | 1434 | 2150400 | 2800 | |
| 184217850 | TLEwpdus ainta | G | Dec. 7, 2022, 11:45 a.m. | OK | GNU C++17 (64) | TESTS | 33 | 2199 | 5324800 | 2800 | |
| 184185495 | 353cerega Batrr mhq | G | Dec. 7, 2022, 9:38 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 389 | 17408000 | 2800 | |
| 184226241 | xby070112 KING_OF_TURTLE | G | Dec. 7, 2022, 1:03 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 779 | 180940800 | 2800 | |
| 184196887 | sohsoh Arnch S2speed | G | Dec. 7, 2022, 10:37 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 1247 | 10137600 | 2800 | |
| 184195958 | KbltQaQ sjc061031 ShmilyTY | G | Dec. 7, 2022, 10:28 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 1279 | 519168000 | 2800 | |
| 184184665 | MiracleFaFa | G | Dec. 7, 2022, 9:30 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 1809 | 521420800 | 2800 | |
| 184226113 | atodo lucaperju BlueDiamond | G | Dec. 7, 2022, 1:02 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 2355 | 521318400 | 2800 | |
| 184193138 | AlternatingCurrent njwrz CrTsIr | G | Dec. 7, 2022, 10:19 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 2994 | 519680000 | 2800 | |
| 184220178 | Randias qiqi20021026 SSerxhs | G | Dec. 7, 2022, 12:07 p.m. | OK | GNU C++20 (64) | TESTS | 33 | 3135 | 519168000 | 2800 | |
| 184280164 | Swistakk | G | Dec. 8, 2022, 1:39 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 3150 | 520704000 | 2800 | |
| 184185013 | jiuruifu 10circle acwing_meow | G | Dec. 7, 2022, 9:33 a.m. | OK | GNU C++20 (64) | TESTS | 33 | 4742 | 519884800 | 2800 | |
| 184213435 | G | Dec. 7, 2022, 11:15 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2800 |
Back to search problems