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 |
---|---|---|---|---|---|---|
1845 | Educational Codeforces Round 151 (Rated for Div. 2) | FINISHED | False | 7200 | 43773899 | June 29, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 28259 ) | A | Forbidden Integer | PROGRAMMING | implementation math |
B'You are given an integer n , which you want to obtain. You have an unlimited supply of every integer from 1 to k , except integer x (there are no integer x at all). You are allowed to take an arbitrary amount of each of these integers (possibly, zero). Can you make the sum of taken integers equal to n ? If there are multiple answers, print any of them. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of testcases. The only line of each testcase contains three integers n, k and x ( 1 <= x <= k <= n <= 100 ). For each test case, in the first line, print "YES" or "NO" -- whether you can take an arbitrary amount of each integer from 1 to k , except integer x , so that their sum is equal to n . If you can, the second line should contain a single integer m -- the total amount of taken integers. The third line should contain m integers -- each of them from 1 to k , not equal to x , and their sum is n . If there are multiple answers, print any of them. Another possible answer for the first testcase is [3, 3, 3, 1] . Note that you don 't have to minimize the amount of taken integers. There also exist other answers. In the second testcase, you only have an unlimited supply of integer 2 . There is no way to get sum 5 using only them. In the fifth testcase, there are no integers available at all, so you can 't get any positive sum. '... |
117791 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
211560180 | lAMaLOSER | A | June 30, 2023, 1:27 a.m. | OK | C# 10 | TESTS | 26 | 61 | 819200 | ||
211554186 | bluemegane | A | June 29, 2023, 10:32 p.m. | OK | C# 8 | TESTS | 26 | 108 | 409600 | ||
211540180 | sexyboy6969 | A | June 29, 2023, 6:19 p.m. | OK | Clang++20 Diagnostics | TESTS | 2 | 46 | 0 | ||
211537936 | NenadDapic | A | June 29, 2023, 5:55 p.m. | OK | FPC | TESTS | 2 | 15 | 102400 | ||
211561683 | tsuki11111 | A | June 30, 2023, 2:03 a.m. | OK | FPC | TESTS | 26 | 31 | 0 | ||
211535467 | riju_mysticseeker | A | June 29, 2023, 5:31 p.m. | OK | GNU C11 | TESTS | 2 | 0 | 0 | ||
211549536 | hasanimam64 | A | June 29, 2023, 8:38 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
211525756 | parvezahmed404 | A | June 29, 2023, 4:32 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
211537112 | thisisaman408 | A | June 29, 2023, 5:47 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
211538071 | ancomvoibimbim | A | June 29, 2023, 5:57 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
211553139 | iffatul_anon | A | June 29, 2023, 10:04 p.m. | OK | GNU C11 | TESTS | 26 | 62 | 0 | ||
211568759 | Jones_K | A | June 30, 2023, 4:10 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211568257 | harman03jani | A | June 30, 2023, 4:01 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211567340 | include_BM | A | June 30, 2023, 3:45 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211563678 | Mibbp | A | June 30, 2023, 2:42 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211562998 | sil. | A | June 30, 2023, 2:30 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211557523 | chenyilai | A | June 30, 2023, 12:14 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211557419 | gray-youth | A | June 30, 2023, 12:11 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211551195 | saiyadm99 | A | June 29, 2023, 9:16 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
211549611 | rifatk | A | June 29, 2023, 8:40 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
211570469 | _steelbenze_ | A | June 30, 2023, 4:42 a.m. | OK | GNU C++14 | TESTS | 26 | 0 | 0 | ||
211561378 | love94610 | A | June 30, 2023, 1:56 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211556940 | jdurie | A | June 29, 2023, 11:57 p.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211552873 | utkarsh_raj_13 | A | June 29, 2023, 9:56 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
211552840 | naman2411 | A | June 29, 2023, 9:55 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
211564226 | sumitdey_1008 | A | June 30, 2023, 2:53 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211566669 | BADHON30 | A | June 30, 2023, 3:34 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211568965 | Shubh08am | A | June 30, 2023, 4:13 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211573133 | vivox31 | A | June 30, 2023, 5:24 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211575739 | gtushar2000 | A | June 30, 2023, 5:56 a.m. | OK | GNU C++17 | TESTS | 27 | 0 | 0 | ||
211564178 | in_use2 | A | June 30, 2023, 2:52 a.m. | OK | GNU C++17 | TESTS | 26 | 0 | 0 | ||
211570351 | chappy1 | A | June 30, 2023, 4:39 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211573251 | startrek4 | A | June 30, 2023, 5:25 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211572801 | lking- | A | June 30, 2023, 5:19 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211570778 | hemanshu02 | A | June 30, 2023, 4:47 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211570249 | luogu_bot2 | A | June 30, 2023, 4:37 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211569832 | moursalinme | A | June 30, 2023, 4:29 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211566385 | Charitha_02 | A | June 30, 2023, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211563845 | qcwlmqy | A | June 30, 2023, 2:45 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211561493 | hhux | A | June 30, 2023, 1:59 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
211550908 | -Anaconda- | A | June 29, 2023, 9:09 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
211571846 | alexeev.ilya_1 | A | June 30, 2023, 5:06 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211571306 | gotham424242 | A | June 30, 2023, 4:56 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211571207 | NehraKunal | A | June 30, 2023, 4:55 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211570724 | DarkQuant | A | June 30, 2023, 4:47 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211572226 | skrock | A | June 30, 2023, 5:11 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211572903 | cp_boy | A | June 30, 2023, 5:21 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211573596 | parthib53 | A | June 30, 2023, 5:30 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211573874 | wslqm | A | June 30, 2023, 5:34 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211574367 | GehadTahoon | A | June 30, 2023, 5:40 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211574723 | mr.Abu0540 | A | June 30, 2023, 5:44 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
211524324 | May_the_Force_be_with_me | A | June 29, 2023, 4:30 p.m. | OK | Go | TESTS | 2 | 15 | 0 | ||
211535792 | Vaibhav_Rajpal | A | June 29, 2023, 5:34 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
211532898 | aaditya1612 | A | June 29, 2023, 5:08 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
211552043 | etian6795 | A | June 29, 2023, 9:36 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
211538988 | ash_79 | A | June 29, 2023, 6:06 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
211549631 | kajal13 | A | June 29, 2023, 8:40 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
211556448 | Abdelrahman.Salah | A | June 29, 2023, 11:42 p.m. | OK | Java 11 | TESTS | 26 | 186 | 0 | ||
211523422 | 2000031966_KLU | A | June 29, 2023, 4:28 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
211530843 | vijender_8601 | A | June 29, 2023, 4:53 p.m. | OK | Java 11 | TESTS | 2 | 187 | 0 | ||
211568984 | achal5623 | A | June 30, 2023, 4:14 a.m. | OK | Java 11 | TESTS | 26 | 202 | 0 | ||
211524443 | igouthamk | A | June 29, 2023, 4:30 p.m. | OK | Java 11 | TESTS | 2 | 217 | 0 | ||
211547490 | rated21 | A | June 29, 2023, 8:01 p.m. | OK | Java 17 | TESTS | 2 | 155 | 512000 | ||
211527315 | whd_CN | A | June 29, 2023, 4:34 p.m. | OK | Java 17 | TESTS | 2 | 155 | 512000 | ||
211540073 | Mostafa_Murad | A | June 29, 2023, 6:18 p.m. | OK | Java 17 | TESTS | 2 | 170 | 0 | ||
211542575 | vanshul_forces | A | June 29, 2023, 6:49 p.m. | OK | Java 17 | TESTS | 2 | 170 | 819200 | ||
211541059 | Vrutik_2809 | A | June 29, 2023, 6:30 p.m. | OK | Java 17 | TESTS | 2 | 171 | 0 | ||
211533030 | www.lovesharma2004 | A | June 29, 2023, 5:09 p.m. | OK | Java 17 | TESTS | 2 | 171 | 614400 | ||
211540614 | _abhi_08 | A | June 29, 2023, 6:24 p.m. | OK | Java 17 | TESTS | 2 | 186 | 0 | ||
211547614 | rated21 | A | June 29, 2023, 8:03 p.m. | OK | Java 17 | TESTS | 2 | 186 | 307200 | ||
211562883 | Mamimi | A | June 30, 2023, 2:28 a.m. | OK | Java 17 | TESTS | 26 | 186 | 512000 | ||
211570309 | not_just_rr | A | June 30, 2023, 4:39 a.m. | OK | Java 17 | TESTS | 26 | 187 | 512000 | ||
211551835 | Mohamed_Ahmed | A | June 29, 2023, 9:31 p.m. | OK | Java 8 | TESTS | 2 | 77 | 0 | ||
211547430 | NerfThis | A | June 29, 2023, 7:59 p.m. | OK | Java 8 | TESTS | 2 | 77 | 0 | ||
211559252 | xiaoshua | A | June 30, 2023, 1:01 a.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
211537063 | sachinjaiswal | A | June 29, 2023, 5:46 p.m. | OK | Java 8 | TESTS | 2 | 108 | 0 | ||
211529680 | tempdata | A | June 29, 2023, 4:45 p.m. | OK | Java 8 | TESTS | 2 | 108 | 0 | ||
211564301 | chuquwan9964 | A | June 30, 2023, 2:54 a.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
211558649 | raviranjan261200 | A | June 30, 2023, 12:44 a.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
211538436 | tejasS-27 | A | June 29, 2023, 6 p.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
211527247 | kl_2100030812 | A | June 29, 2023, 4:34 p.m. | OK | Java 8 | TESTS | 2 | 109 | 0 | ||
211541188 | Sumitsingh7 | A | June 29, 2023, 6:31 p.m. | OK | Java 8 | TESTS | 2 | 109 | 5734400 | ||
211552052 | Morgroth | A | June 29, 2023, 9:36 p.m. | OK | MS C++ 2017 | TESTS | 2 | 0 | 0 | ||
211550855 | Eshan_Karia | A | June 29, 2023, 9:07 p.m. | OK | MS C++ 2017 | TESTS | 2 | 0 | 0 | ||
211538937 | pooja.4 | A | June 29, 2023, 6:06 p.m. | OK | MS C++ 2017 | TESTS | 2 | 0 | 0 | ||
211550310 | Gadi | A | June 29, 2023, 8:54 p.m. | OK | MS C++ 2017 | TESTS | 2 | 0 | 1228800 | ||
211571442 | Vitgo | A | June 30, 2023, 4:59 a.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
211557703 | incuiio | A | June 30, 2023, 12:20 a.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
211534461 | ayata | A | June 29, 2023, 5:21 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
211523379 | mianbizhe | A | June 29, 2023, 4:28 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
211561594 | ooomm | A | June 30, 2023, 2:01 a.m. | OK | MS C++ 2017 | TESTS | 26 | 30 | 409600 | ||
211530755 | deku_09 | A | June 29, 2023, 4:52 p.m. | OK | PyPy 3 | TESTS | 2 | 77 | 0 | ||
211531350 | 2momo2 | A | June 29, 2023, 4:56 p.m. | OK | PyPy 3 | TESTS | 2 | 109 | 2560000 | ||
211525431 | pavan_2303 | A | June 29, 2023, 4:32 p.m. | OK | PyPy 3 | TESTS | 2 | 109 | 2560000 | ||
211550192 | ma7ameee7o0o | A | June 29, 2023, 8:51 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 0 | ||
211541900 | okay4869 | A | June 29, 2023, 6:40 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 0 | ||
211540071 | Frosty96 | A | June 29, 2023, 6:18 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 0 | ||
211545017 | bjy | A | June 29, 2023, 7:22 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 1638400 | ||
211543361 | unknownSolver | A | June 29, 2023, 6:59 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2969600 | ||
211534006 | ahmedchammam | A | June 29, 2023, 5:17 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2969600 | ||
211528774 | bronze_coder | A | June 29, 2023, 4:40 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 2969600 | ||
211546646 | Kladrr | A | June 29, 2023, 7:47 p.m. | OK | PyPy 3-64 | TESTS | 2 | 46 | 3072000 | ||
211552903 | AgnivS | A | June 29, 2023, 9:57 p.m. | OK | PyPy 3-64 | TESTS | 2 | 61 | 0 | ||
211535650 | iron_nicko | A | June 29, 2023, 5:33 p.m. | OK | PyPy 3-64 | TESTS | 2 | 61 | 0 | ||
211551718 | OspechcevaTatyana | A | June 29, 2023, 9:28 p.m. | OK | Python 3 | TESTS | 2 | 15 | 0 | ||
211552944 | yash2603 | A | June 29, 2023, 9:58 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211552514 | rvronak | A | June 29, 2023, 9:47 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211551683 | yash2603 | A | June 29, 2023, 9:27 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211546647 | pgrusha | A | June 29, 2023, 7:47 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211538460 | nitin2203 | A | June 29, 2023, 6:01 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211535768 | Paul_Andre | A | June 29, 2023, 5:34 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211535742 | navin972 | A | June 29, 2023, 5:34 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211534851 | navin972 | A | June 29, 2023, 5:25 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 | ||
211532286 | dewansh461 | A | June 29, 2023, 5:03 p.m. | OK | Python 3 | TESTS | 2 | 30 | 0 |
Back to search problems