ne_justlm's blog

By ne_justlm, 11 hours ago, translation, In English

Thanks for participating in the most isekai NyaForces contest!

We honestly strived to make good tasks.

2072A - New World, New Me, New Array

Idea: ne_justlm

Tutorial
Solution
Rate the problem

2072B - Having Been a Treasurer in the Past, I Help Goblins Deceive

Idea: ne_justlm

Tutorial
Solution
Rate the problem

2072C - Creating Keys for StORages Has Become My Main Skill

Idea: ne_justlm, IceHydra

Tutorial
Solution
Rate the problem

2072D - For Wizards, the Exam Is Easy, but I Couldn't Handle It

Idea: ne_justlm

Tutorial
Solution
Rate the problem

2072E - Do You Love Your Hero and His Two-Hit Multi-Target Attacks?

Idea: ne_justlm

Tutorial
Solution
Rate the problem

2072F - Goodbye, Banker Life

Idea: itz_pabloo

Tutorial
Solution
Rate the problem

2072G - I've Been Flipping Numbers for 300 Years and Calculated the Sum

Idea: ne_justlm, IceHydra

Tutorial
Solution
Rate the problem
  • Vote: I like it
  • +27
  • Vote: I do not like it

»
3 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

F was so good!

Apart from the Pascal's triangle solution, You can do it by recursion and I learned that the self-similar repeating fractal pattern formed by F is called a Sierpinski's triangle!

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

nice

»
3 hours ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

Thanks to the authors for a good round

»
3 hours ago, # |
  Vote: I like it +5 Vote: I do not like it

constructive contest

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks for a balanced and well-paced contest with interesting problems!

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Good contest, help to learn and enhance problem-solving skills.

»
104 minutes ago, # |
  Vote: I like it +1 Vote: I do not like it

For the F, if we use Lucas' Theorem, we can actually deduce that $$$\binom{n}{k}\mod 2$$$ is 1 only if $$$k$$$ in binary is a submask of $$$n$$$, in other words if $$$k$$$&$$$n$$$ equals $$$k$$$

With this there's an elegant two-line solution in $$$O(n)$$$:

int a,b;cin>>a>>b;a--;
for(int i = 0;i<=a;i++) cout << (int)((a&i)==i)*b << ' ';