0-1 Sequences Kattis Problem
Разница между en1 и en2, 58 символ(ов) изменены
[Problem Statement](https://open.kattis.com/problems/sequences)↵

[Code](https://hastebin.com/umiguvegat.cpp)↵

I tried using the logic in [this blog post](http://codeforces.com/blog/entry/48143), but I keep getting WA. My code uses the identity 0*nC0+1*nC1+2*nC2+...+n*nCn = n*2^(n-1).↵

Can someone please find the flaw in my counting method
 (or even better, provide a test case that breaks my code)?↵

Thanks in advance!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский vamaddur 2017-11-06 06:41:13 58
en1 Английский vamaddur 2017-11-06 06:40:28 397 Initial revision (published)