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 |
---|---|---|---|---|---|---|
1790 | Codeforces Round 847 (Div. 3) | FINISHED | False | 8100 | 62436263 | Jan. 27, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 27762 ) | B | Taisia and Dice | PROGRAMMING | greedy greedy math |
B"Taisia has n six-sided dice. Each face of the die is marked with a number from 1 to 6 , each number from 1 to 6 is used once. Taisia rolls all n dice at the same time and gets a sequence of values a_1, a_2, ldots, a_n ( 1 <= a_i <= 6 ), where a_i is the value on the upper face of the i -th dice. The sum of this sequence is equal to s . Suddenly, Taisia's pet cat steals exactly one dice with maximum value a_i and calculates the sum of the values on the remaining n-1 dice, which is equal to r . You only know the number of dice n and the values of s , r . Restore a possible sequence a that fulfills the constraints. The first line contains the integer t ( 1 <= t <= 1000 ) -- the number of testcases. Each testcase is given on a separate line and contains three integers n , s , r ( 2 <= n <= 50 , 1 <= r < s <= 300 ). It is guaranteed that a solution exists. For each testcase, print: n integers a_1, a_2, ldots, a_n in any order. It is guaranteed that such sequence exists. If there are multiple solutions, print any. "... |
111948 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
190896865 | ansergeyg | B | Jan. 27, 2023, 7:23 p.m. | OK | C# 8 | TESTS | 8 | 77 | 1331200 | ||
190923466 | bluemegane | B | Jan. 28, 2023, 4:32 a.m. | OK | C# 8 | TESTS | 8 | 140 | 1536000 | ||
190878347 | anandkumarrana | B | Jan. 27, 2023, 4:57 p.m. | OK | Clang++17 Diagnostics | TESTS | 8 | 171 | 0 | ||
190916863 | xiaomadada | B | Jan. 28, 2023, 2:19 a.m. | OK | Clang++20 Diagnostics | TESTS | 8 | 171 | 0 | ||
190901161 | xSoliman_Adel | B | Jan. 27, 2023, 8:20 p.m. | OK | Clang++20 Diagnostics | TESTS | 8 | 171 | 0 | ||
190895037 | NenadDapic | B | Jan. 27, 2023, 7:03 p.m. | OK | FPC | TESTS | 8 | 124 | 0 | ||
190895323 | NenadDapic | B | Jan. 27, 2023, 7:06 p.m. | OK | FPC | TESTS | 8 | 140 | 0 | ||
190929318 | CSUSTlnx | B | Jan. 28, 2023, 5:41 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190926901 | lucyanurag | B | Jan. 28, 2023, 5:14 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190925846 | HackerOrWhat | B | Jan. 28, 2023, 5:02 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190925639 | ITworker_Z | B | Jan. 28, 2023, 5 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190924949 | fytftyf | B | Jan. 28, 2023, 4:51 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190924565 | y_kx_b | B | Jan. 28, 2023, 4:46 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190924215 | after_dream | B | Jan. 28, 2023, 4:41 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190924160 | icesmoke | B | Jan. 28, 2023, 4:41 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190923510 | farhad52 | B | Jan. 28, 2023, 4:32 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 | ||
190923251 | designed_story | B | Jan. 28, 2023, 4:29 a.m. | OK | GNU C++14 | TESTS | 8 | 15 | 0 |
Back to search problems