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.
Problems
B"Daisy is a senior software engineer at RainyDay, LLC. She has just implemented three new features in their product: the first feature makes their product work, the second one makes their product fast, and the third one makes their product correct. The company encourages at least some testing of new features, so Daisy appointed her intern Demid to write some tests for the new features. Interestingly enough, these three features pass all the tests on Demid's development server, which has index 1, but might fail the tests on some other servers. After Demid has completed this task, Daisy appointed you to deploy these three features to all n servers of your company. For every feature f and every server s , Daisy told you whether she wants the feature f to be deployed on the server s . If she wants it to be deployed, it must be done even if the feature f fails the tests on the server s . If she does not want it to be deployed, you may not deploy it there. Your company has two important instruments for the deployment of new features to servers: Continuous Deployment (CD) and Continuous Testing (CT). CD can be established between several pairs of servers, forming a directed graph. CT can be set up on some set of servers. If CD is configured from the server s_1 to the server s_2 then every time s_1 receives a new feature f the system starts the following deployment process of f to s_2 : You are to configure the CD/CT system, and after that Demid will deploy all three features on his development server. Your CD/CT system must deploy each feature exactly to the set of servers that Daisy wants. Your company does not have a lot of computing resources, so you can establish CD from one server to another at most 264 times. The first line contains integer n ( 2 <= n <= 256 ) -- the number of servers in your company. Next n lines contain three integers each. The j -th i"... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
66126535 |
scott_wu stevenkplus |
D |
Dec. 1, 2019, 10:36 a.m. |
OK |
GNU C++11 |
TESTS |
41 |
31 |
0 |
|
3200 |
66126625 |
Ra16bit |
D |
Dec. 1, 2019, 10:38 a.m. |
OK |
GNU C++11 |
TESTS |
41 |
31 |
819200 |
|
3200 |
66134062 |
Roundgod sy_chen calabash_boy |
D |
Dec. 1, 2019, 11:34 a.m. |
OK |
GNU C++14 |
TESTS |
41 |
30 |
0 |
|
3200 |
66133850 |
J.T.J.L. shb123 sfiction |
D |
Dec. 1, 2019, 11:30 a.m. |
OK |
GNU C++14 |
TESTS |
41 |
30 |
204800 |
|
3200 |
66133039 |
Kostroma zeliboba |
D |
Dec. 1, 2019, 11:13 a.m. |
OK |
GNU C++14 |
TESTS |
41 |
31 |
204800 |
|
3200 |
66116476 |
tEMMIE.w. apiadu MiFaFaOvO |
D |
Dec. 1, 2019, 9:58 a.m. |
OK |
GNU C++14 |
TESTS |
41 |
31 |
204800 |
|
3200 |
66113846 |
ecnerwala ksun48 |
D |
Dec. 1, 2019, 9:39 a.m. |
OK |
GNU C++14 |
TESTS |
41 |
46 |
0 |
|
3200 |
66129573 |
aid |
D |
Dec. 1, 2019, 10:52 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
30 |
0 |
|
3200 |
66129531 |
tempura0224 heno239 yamunaku |
D |
Dec. 1, 2019, 10:51 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
30 |
0 |
|
3200 |
66133478 |
chenyeyuan YangDavid CN_zwang2002 |
D |
Dec. 1, 2019, 11:22 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
30 |
204800 |
|
3200 |
66115985 |
ainta tlwpdus molamola. |
D |
Dec. 1, 2019, 9:48 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
30 |
204800 |
|
3200 |
66133883 |
zemen ifsmirnov Arterm |
D |
Dec. 1, 2019, 11:30 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
31 |
0 |
|
3200 |
66133476 |
maroonrk sigma425 yosupo |
D |
Dec. 1, 2019, 11:22 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
31 |
0 |
|
3200 |
66133407 |
V--o_o--V |
D |
Dec. 1, 2019, 11:20 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
31 |
204800 |
|
3200 |
66129636 |
dorijanlendvaj FlowerOfSorrow neko_nyaaaaaaaaaaaaaaaaa |
D |
Dec. 1, 2019, 10:53 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
31 |
10649600 |
|
3200 |
66135232 |
KMAASZRAA Atreus Kalam |
D |
Dec. 1, 2019, 11:56 a.m. |
OK |
GNU C++17 |
TESTS |
41 |
46 |
204800 |
|
3200 |
remove filters
Back to search problems