Google-Developer-Student-Club-CCOEW / Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE

Welcome to the Hacktoberfest 2023 Competitive-Programming Cohort for Cummins College and MMCOE students! To request issue assignment, create a pull request, providing: 1. Full Name 🧑‍🎓 2.Email 📧 3.College ID (RNO) 🔢 4.Branch of Study.📚 5. Year 📆 .The Cummins College and MMCOE students' PRs will be considered only. Thank you!
9 stars 69 forks source link

Two Sets #138

Closed suryaprakashpandey closed 8 months ago

suryaprakashpandey commented 9 months ago

Write code in the preferred language and attach output with it.

Your task is to divide the numbers 1,2,…,n into two sets of equal sum.

Input The only input line contains an integer n.

Output Print "YES", if the division is possible, and "NO" otherwise.

After this, if the division is possible, print an example of how to create the sets. First, print the number of elements in the first set followed by the elements themselves in a separate line, and then, print the second set in a similar way.

Example 1

Input: 7 Output: YES 4 1 2 4 7 3 3 5 6

Example 2

Input: 6 Output: NO

maskboyAvi commented 9 months ago

@suryaprakashpandey I would like to work on this issue. Please assign it to me.

DhritiSoni4 commented 9 months ago

I would like to contribute. Please assign.

vaishnavim141003 commented 9 months ago

two sets #138 solved .. Create two sets https://github.com/Google-Developer-Student-Club-CCOEW/Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE/issues/138

vaishnavim141003 commented 8 months ago

Vaishnavi Mahajan-Cummins college of engineering. I would like to work on this issue. So please assign this issue(#138) to me.

Eesha04 commented 8 months ago

Eesha Satvalekar - Cummins College email: eesha.satvalekar@cumminscollege.in I would like to work on this issue. Please assign this (#138) issue to me.