Codeforces Round 488 by NEAR (Div. 1)

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
993 Codeforces Round 488 by NEAR (Div. 1) FINISHED False 9000 202656299 June 16, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 60 ) F The Moral Dilemma PROGRAMMING 3100

B'Hibiki and Dita are in love with each other, but belong to communities that are in a long lasting conflict. Hibiki is deeply concerned with the state of affairs, and wants to figure out if his relationship with Dita is an act of love or an act of treason. Hibiki prepared several binary features his decision will depend on, and built a three layer logical circuit on top of them, each layer consisting of one or more logic gates. Each gate in the circuit is either "or", "and", "nor" (not or) or "nand" (not and). Each gate in the first layer is connected to exactly two features. Each gate in the second layer is connected to exactly two gates in the first layer. The third layer has only one "or" gate, which is connected to all the gates in the second layer (in other words, the entire circuit produces 1 if and only if at least one gate in the second layer produces 1). The problem is, Hibiki knows very well that when the person is in love, his ability to think logically degrades drastically. In particular, it is well known that when a person in love evaluates a logical circuit in his mind, every gate evaluates to a value that is the opposite of what it was supposed to evaluate to. For example, "or" gates return 1 if and only if both inputs are zero, "t{nand}" gates produce 1 if and only if both inputs are one etc. In particular, the "or" gate in the last layer also produces opposite results, and as such if Hibiki is in love, the entire circuit produces 1 if and only if all the gates on the second layer produced 0. Hibiki can xe2 x80 x99t allow love to affect his decision. He wants to know what is the smallest number of gates that needs to be removed from the second layer so that the output of the circuit for all possible inputs doesn 't depend on whether Hibiki is in love or not. The first line contains three integers n , m , k ( 2 <= n, m <= 50 ; 1 <= k <= 50 ) -- the number of input features, the number of gates in the first layer, and the n'...

Tutorials

Codeforces Round #488 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40217806 rzswh F July 12, 2018, 4:06 a.m. OK GNU C++ TESTS 179 31 0 3100
41297960 mayaohua2003 F Aug. 7, 2018, 8:20 a.m. OK GNU C++ TESTS 179 31 102400 3100
57869461 lopare F July 28, 2019, 12:20 a.m. OK GNU C++11 TESTS 179 31 0 3100
57739035 py_ultron F July 25, 2019, 10:52 a.m. OK GNU C++11 TESTS 179 31 0 3100
50589755 0202 F Feb. 28, 2019, 6:41 a.m. OK GNU C++11 TESTS 179 31 0 3100
47839775 bashetti F Jan. 2, 2019, 11:07 a.m. OK GNU C++11 TESTS 179 31 0 3100
40243634 hAtchiko F July 12, 2018, 9:09 p.m. OK GNU C++11 TESTS 179 31 0 3100
39963013 hokalaka F July 4, 2018, 5:37 p.m. OK GNU C++11 TESTS 179 31 0 3100
39963006 hokalaka F July 4, 2018, 5:37 p.m. OK GNU C++11 TESTS 179 31 0 3100
39962997 hokalaka F July 4, 2018, 5:37 p.m. OK GNU C++11 TESTS 179 31 0 3100
39962986 hokalaka F July 4, 2018, 5:37 p.m. OK GNU C++11 TESTS 179 31 0 3100
39357685 krijgertje F June 18, 2018, 1:40 p.m. OK GNU C++11 TESTS 179 31 0 3100
48308800 Motarack F Jan. 12, 2019, 10:18 p.m. OK GNU C++14 TESTS 179 31 0 3100
45444869 Saedshaheen F Nov. 8, 2018, 12:53 p.m. OK GNU C++14 TESTS 179 31 0 3100
42723428 hdv250202 F Sept. 10, 2018, 4:56 a.m. OK GNU C++14 TESTS 179 31 0 3100
42011264 Lynstery F Aug. 24, 2018, 1:10 a.m. OK GNU C++14 TESTS 179 31 0 3100
39677099 consecutivelimit F June 26, 2018, 1:42 p.m. OK GNU C++14 TESTS 179 31 0 3100
40931842 ReaLNero1 F July 30, 2018, 1:23 a.m. OK GNU C++14 TESTS 179 31 204800 3100
40683625 Xellos F July 23, 2018, 11:13 p.m. OK GNU C++14 TESTS 179 31 204800 3100
39500622 MohamedMagdy F June 21, 2018, 8:53 p.m. OK GNU C++14 TESTS 179 31 204800 3100
39315278 Um_nik F June 16, 2018, 6:57 p.m. OK GNU C++14 TESTS 179 31 204800 3100
40353350 fsouza F July 14, 2018, 6:21 p.m. OK GNU C++14 TESTS 179 62 33792000 3100
52222866 jinjonik F April 2, 2019, 7:37 a.m. OK GNU C++17 TESTS 179 31 0 3100
51406294 zandrad11 F March 17, 2019, 10:02 a.m. OK GNU C++17 TESTS 179 31 0 3100
58186436 walnutwaldo20 F Aug. 2, 2019, 5:21 p.m. OK GNU C++17 TESTS 179 31 204800 3100
54721080 Benq F May 27, 2019, 5:25 p.m. OK GNU C++17 TESTS 179 31 204800 3100
39456206 khokho-nikabb_are_noobs F June 21, 2018, 8:50 a.m. OK GNU C++17 TESTS 179 31 204800 3100
45500999 serega.ktl F Nov. 10, 2018, 7:36 a.m. OK GNU C++17 TESTS 179 61 33792000 3100
39320695 Errichto F June 16, 2018, 11 p.m. OK GNU C++17 TESTS 179 312 3072000 3100
39316458 Errichto F June 16, 2018, 7:04 p.m. OK GNU C++17 TESTS 179 343 3072000 3100

remove filters

Back to search problems