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 |
---|---|---|---|---|---|---|
838 | IndiaHacks 2nd Elimination 2017 (unofficial, unrated mirror, ICPC rules) | FINISHED | False | 10800 | 235439724 | Aug. 7, 2017, 6:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 951 ) | D | Airplane Arrangements | PROGRAMMING | math number theory | 2700 |
B'There is an airplane which has n rows from front to back. There will be m people boarding this airplane. This airplane has an entrance at the very front and very back of the plane. Each person has some assigned seat. It is possible for multiple people to have the same assigned seat. The people will then board the plane one by one starting with person 1. Each person can independently choose either the front entrance or back entrance to enter the plane. When a person walks into the plane, they walk directly to their assigned seat and will try to sit in it. If it is occupied, they will continue walking in the direction they walked in until they are at empty seat - they will take the earliest empty seat that they can find. If they get to the end of the row without finding a seat, they will be angry. Find the number of ways to assign tickets to the passengers and board the plane without anyone getting angry. Two ways are different if there exists a passenger who chose a different entrance in both ways, or the assigned seat is different. Print this count modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line of input will contain two integers n, xe2 x80 x89m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000), the number of seats, and the number of passengers, respectively. Print a single number, the number of ways, modulo 109 xe2 x80 x89+ xe2 x80 x897. Here, we will denote a passenger by which seat they were assigned, and which side they came from (either "F" or "B" for front or back, respectively). For example, one valid way is 3B, 3B, 3B (i.e. all passengers were assigned seat 3 and came from the back entrance). Another valid way would be 2F, 1B, 3F. One invalid way would be 2B, 2B, 2B, since the third passenger would get to the front without finding a seat. '... |
53736 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
30767781 | vjudge3 | D | Sept. 27, 2017, 4:57 a.m. | OK | GNU C | TESTS | 65 | 15 | 0 | 2700 | |
30767761 | Magolor | D | Sept. 27, 2017, 4:55 a.m. | OK | GNU C | TESTS | 65 | 15 | 0 | 2700 | |
30767524 | Magolor | D | Sept. 27, 2017, 4:35 a.m. | OK | GNU C++ | TESTS | 65 | 15 | 0 | 2700 | |
29639854 | F.Darcy | D | Aug. 21, 2017, 9:19 a.m. | OK | GNU C++ | TESTS | 65 | 15 | 0 | 2700 | |
29564805 | derpidc | D | Aug. 18, 2017, 3:28 p.m. | OK | GNU C++ | TESTS | 65 | 15 | 0 | 2700 | |
29526761 | gjghfd | D | Aug. 17, 2017, 1:06 p.m. | OK | GNU C++ | TESTS | 65 | 15 | 0 | 2700 | |
30767529 | vjudge2 | D | Sept. 27, 2017, 4:35 a.m. | OK | GNU C++ | TESTS | 65 | 15 | 0 | 2700 | |
29319736 | wmd | D | Aug. 10, 2017, 7:05 a.m. | OK | GNU C++ | TESTS | 65 | 15 | 1945600 | 2700 | |
29289926 | nhho | D | Aug. 8, 2017, 4:51 p.m. | OK | GNU C++ | TESTS | 65 | 15 | 2150400 | 2700 | |
41260981 | luogu_bot5 | D | Aug. 6, 2018, 2:42 a.m. | OK | GNU C++ | TESTS | 65 | 30 | 0 | 2700 | |
41290752 | xiant | D | Aug. 7, 2018, 2:45 a.m. | OK | GNU C++ | TESTS | 65 | 31 | 0 | 2700 | |
41261921 | luogu_bot2 | D | Aug. 6, 2018, 3:28 a.m. | OK | GNU C++ | TESTS | 65 | 31 | 0 | 2700 | |
61387325 | akash19jain | D | Sept. 27, 2019, 7:39 p.m. | OK | GNU C11 | TESTS | 65 | 31 | 0 | 2700 | |
31960301 | ericxu0 | D | Nov. 1, 2017, 6:40 p.m. | OK | GNU C++11 | TESTS | 65 | 15 | 0 | 2700 | |
29712546 | TadijaSebez | D | Aug. 23, 2017, 4:24 p.m. | OK | GNU C++11 | TESTS | 65 | 15 | 0 | 2700 | |
34210800 | zhouyuyang | D | Jan. 16, 2018, 2:02 a.m. | OK | GNU C++11 | TESTS | 65 | 15 | 2048000 | 2700 | |
29359352 | quailty | D | Aug. 11, 2017, 5:30 p.m. | OK | GNU C++11 | TESTS | 65 | 15 | 2150400 | 2700 | |
29284143 | Megumi_ | D | Aug. 8, 2017, 11:46 a.m. | OK | GNU C++11 | TESTS | 65 | 15 | 2150400 | 2700 | |
29276045 | gerardd | D | Aug. 8, 2017, 2:32 a.m. | OK | GNU C++11 | TESTS | 65 | 15 | 2150400 | 2700 | |
29529946 | PlayfulPanda | D | Aug. 17, 2017, 4:03 p.m. | OK | GNU C++11 | TESTS | 65 | 30 | 0 | 2700 | |
29262617 | paul.zrm | D | Aug. 7, 2017, 10:48 a.m. | OK | GNU C++11 | TESTS | 65 | 30 | 2150400 | 2700 | |
62605018 | Kylin_ | D | Oct. 15, 2019, 7:23 a.m. | OK | GNU C++11 | TESTS | 65 | 31 | 0 | 2700 | |
62310060 | _twilight | D | Oct. 10, 2019, 1:41 p.m. | OK | GNU C++11 | TESTS | 65 | 31 | 0 | 2700 | |
30827942 | Misaka10032 | D | Sept. 29, 2017, 12:22 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
31117370 | fatego | D | Oct. 7, 2017, 1:57 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
30617374 | Akigeor | D | Sept. 22, 2017, 2:29 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
30028158 | kazel | D | Sept. 3, 2017, 9:28 a.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
29629646 | ForgotToUpsolve | D | Aug. 20, 2017, 8:10 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
29552146 | statusrank | D | Aug. 18, 2017, 11:22 a.m. | OK | GNU C++14 | TESTS | 65 | 15 | 0 | 2700 | |
29366414 | tigerwx | D | Aug. 12, 2017, 2:17 a.m. | OK | GNU C++14 | TESTS | 65 | 15 | 1945600 | 2700 | |
29308915 | ivan100sic | D | Aug. 9, 2017, 3:22 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 1945600 | 2700 | |
29477712 | dotorya | D | Aug. 15, 2017, 9:24 a.m. | OK | GNU C++14 | TESTS | 65 | 15 | 1945600 | 2700 | |
32732212 | realcomplex | D | Nov. 27, 2017, 5:59 p.m. | OK | GNU C++14 | TESTS | 65 | 15 | 1945600 | 2700 | |
49834362 | Stalin. | D | Feb. 12, 2019, 3:25 p.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
47849690 | Benq | D | Jan. 2, 2019, 4:54 p.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
41954572 | lintoto | D | Aug. 22, 2018, 5:30 a.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
41242899 | ShichengXiao | D | Aug. 5, 2018, 11:28 a.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
64950751 | hjk1030 | D | Nov. 15, 2019, 4:08 a.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
60832807 | Zory | D | Sept. 19, 2019, 7:41 a.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
54279220 | Night | D | May 17, 2019, 12:36 p.m. | OK | GNU C++17 | TESTS | 65 | 31 | 0 | 2700 | |
48678941 | Shayan.P | D | Jan. 21, 2019, 12:30 p.m. | OK | GNU C++17 | TESTS | 65 | 46 | 204800 | 2700 | |
49122985 | ToTLeS | D | Jan. 28, 2019, 8:22 p.m. | OK | GNU C++17 | TESTS | 65 | 46 | 5017600 | 2700 | |
38879362 | vjudge2 | D | June 2, 2018, 8:23 a.m. | OK | MS C++ | TESTS | 65 | 30 | 3481600 | 2700 | |
40391788 | vjudge1 | D | July 16, 2018, 1:33 a.m. | OK | MS C++ | TESTS | 65 | 31 | 0 | 2700 | |
29286739 | rajat1603 | D | Aug. 8, 2017, 2:02 p.m. | OK | PyPy 2 | TESTS | 65 | 124 | 21913600 | 2700 | |
29312403 | LHiC | D | Aug. 9, 2017, 7:09 p.m. | OK | PyPy 3 | TESTS | 65 | 140 | 23142400 | 2700 | |
29372613 | mohamedhabila | D | Aug. 12, 2017, 8:28 a.m. | OK | Python 3 | TESTS | 65 | 62 | 4608000 | 2700 |
Back to search problems