text
stringlengths
198
433k
conversation_id
int64
0
109k
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,400
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,401
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,402
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,403
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,404
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which solve a simultaneous equation: ax + by = c dx + ey = f The program should print x and y for given a, b, c, d, e and f (-1,000 ≤ a, b, c, d, e, f ≤ 1,000). You can suppose...
12,405
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,406
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,407
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,408
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,409
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,410
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,411
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,412
Provide a correct Python 3 solution for this coding contest problem. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution is divided into 6 classes in 5 cm increments, and the nu...
12,413
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution ...
12,414
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution ...
12,415
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution ...
12,416
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The height of the student was measured at the medical examination. Create a program that takes height data as input, creates a frequency distribution, and outputs it. The frequency distribution ...
12,417
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,418
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,419
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,420
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,421
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,422
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,423
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,424
Provide a correct Python 3 solution for this coding contest problem. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of the same color are not lined up in a row. The player can...
12,425
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of ...
12,426
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of ...
12,427
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of ...
12,428
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. problem There are the following games. N characters are lined up in a vertical row. The color of these characters is red, blue, or yellow, and in the initial state, four or more characters of ...
12,429
Provide a correct Python 3 solution for this coding contest problem. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed providing products particularly depends on skill of the ...
12,430
Provide a correct Python 3 solution for this coding contest problem. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed providing products particularly depends on skill of the ...
12,431
Provide a correct Python 3 solution for this coding contest problem. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed providing products particularly depends on skill of the ...
12,432
Provide a correct Python 3 solution for this coding contest problem. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed providing products particularly depends on skill of the ...
12,433
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed ...
12,434
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed ...
12,435
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed ...
12,436
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are a student of University of Aizu. And you work part-time at a restaurant. Staffs of the restaurant are well trained to be delighted to provide more delicious products faster. The speed ...
12,437
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The story of yesterday evening. After finishing the lecture at the university as usual and feeding the cats on campus, which is a daily routine, when I got home, people in work clothes were work...
12,438
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The story of yesterday evening. After finishing the lecture at the university as usual and feeding the cats on campus, which is a daily routine, when I got home, people in work clothes were work...
12,439
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The story of yesterday evening. After finishing the lecture at the university as usual and feeding the cats on campus, which is a daily routine, when I got home, people in work clothes were work...
12,440
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The story of yesterday evening. After finishing the lecture at the university as usual and feeding the cats on campus, which is a daily routine, when I got home, people in work clothes were work...
12,441
Provide a correct Python 3 solution for this coding contest problem. Example Input 3 NNN NNN NNN Output Taro "Correct Solution: ``` from collections import deque import sys sys.setrecursionlimit(10**6) readline = sys.stdin.readline write = sys.stdout.write def solve(): N = int(readline()) G = [[] for i in...
12,442
Provide a correct Python 3 solution for this coding contest problem. Dice Stamp Dice stamp At a local fair, you found a game store you've never seen before. This is a game in which N 6-sided dice are dropped and rolled on the board. More precisely, N buttons are tied to N dice on a one-to-one basis, and pressing the...
12,443
Provide a correct Python 3 solution for this coding contest problem. Dice Stamp Dice stamp At a local fair, you found a game store you've never seen before. This is a game in which N 6-sided dice are dropped and rolled on the board. More precisely, N buttons are tied to N dice on a one-to-one basis, and pressing the...
12,444
Provide a correct Python 3 solution for this coding contest problem. D: Indecision-Indecision- problem Ebi-chan has been addicted to gal games lately, and her goal now is to capture two heroines at the same time. Ebi-chan can use several events to increase her liking from the heroine, but only one heroine can be se...
12,445
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. D: Indecision-Indecision- problem Ebi-chan has been addicted to gal games lately, and her goal now is to capture two heroines at the same time. Ebi-chan can use several events to increase her...
12,446
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. D: Indecision-Indecision- problem Ebi-chan has been addicted to gal games lately, and her goal now is to capture two heroines at the same time. Ebi-chan can use several events to increase her...
12,447
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. D: Indecision-Indecision- problem Ebi-chan has been addicted to gal games lately, and her goal now is to capture two heroines at the same time. Ebi-chan can use several events to increase her...
12,448
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. D: Indecision-Indecision- problem Ebi-chan has been addicted to gal games lately, and her goal now is to capture two heroines at the same time. Ebi-chan can use several events to increase her...
12,449
Provide a correct Python 3 solution for this coding contest problem. C: Shuttle Run Story University H has a unique physical fitness test program, aiming to grow the mindset of students. Among the items in the program, shuttle run is well-known as especially eccentric one. Surprisingly, there are yokans (sweet beans...
12,450
Provide a correct Python 3 solution for this coding contest problem. Problem statement Modulo is very good at drawing trees. Over the years, Modulo has drawn a picture of a tree with $ N $ vertices. The vertices of this tree are numbered from $ 1 $ to $ N $, and the vertices $ a_i $ and $ b_i $$ (1 \ leq i \ leq N-1...
12,451
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,452
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,453
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,454
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,455
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,456
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,457
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,458
Provide a correct Python 3 solution for this coding contest problem. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the sum of weights of all edges from the root to node $u$ ...
12,459
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,460
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,461
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,462
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,463
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,464
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,465
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Write a program which manipulates a weighted rooted tree $T$ with the following operations: * $add(v,w)$: add $w$ to the edge which connects node $v$ and its parent * $getSum(u)$: report the s...
12,466
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged them all in a circle and held a draw to break ...
12,467
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged them all in a circle and held a draw to break ...
12,468
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged...
12,469
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged...
12,470
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged...
12,471
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Imur Ishakov decided to organize a club for people who love to play the famous game «The hat». The club was visited by n students, where n is even. Imur arranged...
12,472
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,473
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,474
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,475
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,476
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,477
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,478
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,479
Provide tags and a correct Python 3 solution for this coding contest problem. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by 2 rounding down (i.e. remove the last digit of ...
12,480
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,481
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,482
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,483
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,484
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,485
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,486
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,487
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You are given two huge binary integer numbers a and b of lengths n and m respectively. You will repeat the following process: if b > 0, then add to the answer the value a~ \&~ b and divide b by ...
12,488
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,489
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,490
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,491
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,492
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,493
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,494
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,495
Provide tags and a correct Python 3 solution for this coding contest problem. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor some lamps in this garland (recoloring a lamp mean...
12,496
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor som...
12,497
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor som...
12,498
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. You have a garland consisting of n lamps. Each lamp is colored red, green or blue. The color of the i-th lamp is s_i ('R', 'G' and 'B' — colors of lamps in the garland). You have to recolor som...
12,499