Codeforces Round 911 (Div. 2)

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
1900 Codeforces Round 911 (Div. 2) FINISHED False 7200 30813899 Nov. 26, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17622 ) B Laura and Operations PROGRAMMING dp math

B'Laura is a girl who does not like combinatorics. Nemanja will try to convince her otherwise. Nemanja wrote some digits on the board. All of them are either 1 , 2 , or 3 . The number of digits 1 is a . The number of digits 2 is b and the number of digits 3 is c . He told Laura that in one operation she can do the following: For example, let the digits be 1 , 1 , 1 , 2 , 3 , 3 . She can choose digits 1 and 3 and erase them. Then the board will look like this 1 , 1 , 2 , 3 . After that, she has to write another digit 2 , so at the end of the operation, the board will look like 1 , 1 , 2 , 3 , 2 . Nemanja asked her whether it was possible for only digits of one type to remain written on the board after some operations. If so, which digits can they be? Laura was unable to solve this problem and asked you for help. As an award for helping her, she will convince Nemanja to give you some points. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). The description of the test cases follows. The first and only line of each test case contains three integers a , b , c ( 1 <= a, b, c <= 100 ) -- the number of ones, number of twos, and number of threes, respectively. For each test case, output one line containing 3 integers. The first one should be 1 if it is possible that after some operations only digits 1 remain on the board, and 0 otherwise. Similarly, the second one should be 1 if it is possible that after some operations only digits 2 remain on the board, and 0 otherwise. Similarly, the third one should be 1 if it is possible that after some operations only digits 3 remain on the board, and 0 otherwise. In the first test case, Laura can remove digits 2 and 3 a'...

Tutorials

Codeforces Round 911 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
234468255 newbits B Nov. 26, 2023, 3:48 p.m. OK C# 10 TESTS 13 358 3276800
234469070 Anastasiya_Andreevna B Nov. 26, 2023, 3:50 p.m. OK C# 10 TESTS 13 389 3379200
234523336 bluemegane B Nov. 27, 2023, 12:44 a.m. OK C# 8 TESTS 13 420 3379200
234535203 raihan_dewon B Nov. 27, 2023, 4:39 a.m. OK GNU C++14 TESTS 13 46 0
234528067 Mars_Dingdang B Nov. 27, 2023, 2:41 a.m. OK GNU C++14 TESTS 13 46 2150400
234486691 MegalovaniaJ B Nov. 26, 2023, 5:31 p.m. OK GNU C++14 TESTS 13 62 0
234470197 123hh2 B Nov. 26, 2023, 3:53 p.m. OK GNU C++14 TESTS 13 62 0
234469940 Atomic_Zuuccini B Nov. 26, 2023, 3:53 p.m. OK GNU C++14 TESTS 13 62 1126400
234468802 yoyi_ B Nov. 26, 2023, 3:49 p.m. OK GNU C++14 TESTS 13 62 9216000
234526496 WashingtonBull B Nov. 27, 2023, 2:07 a.m. OK GNU C++14 TESTS 13 77 0
234472682 delirio B Nov. 26, 2023, 4:01 p.m. OK GNU C++14 TESTS 13 77 0
234530877 LvwwwQi B Nov. 27, 2023, 3:34 a.m. OK GNU C++14 TESTS 13 78 0
234526575 qjm B Nov. 27, 2023, 2:09 a.m. OK GNU C++14 TESTS 13 78 0

remove filters

Back to search problems