So I was thinking about this CSES problem: link. I saw that the answer is (x-1) ^ (y-1), but I have absolutely no idea why it works. Could someone explain or at least give some hints? Thanks.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
4 | atcoder_official | 161 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
So I was thinking about this CSES problem: link. I saw that the answer is (x-1) ^ (y-1), but I have absolutely no idea why it works. Could someone explain or at least give some hints? Thanks.
Hello everyone. I was wondering how the future of CP will look like. I think as we progress as a race and as our scientific knowledge is exponentially growing, programming will get more and more in the life of normal people. I think programming will be a fundamental subject in the future, just like math. So I think in this way many more people will get attracted into CP. What do you guys think? Share your thoughts in the comments.
Magic was supposed to stop on Jan 10, but today it is 11 and it is still there. Why is this so?
Yo! I just did a video called "If cats did competitive programming". Check it out: YouTube
Tell me if you liked it :)
Hey. I live in Bucharest, Romania. If you also live here and want to be programmer friends or something, text me. I dont know where else to look for people. Have a nice day.
What is a good site for learning programming concepts / approaches? I feel like just solving problems is not enough.
Can anyone please explain this problem: https://codeforces.me/contest/1405/problem/B
The tutorial is so bad explained and I don't get it.
Thanks.
Hey guys, I have a question for those more advanced ones. Do you think quality over quantity or vice versa? I am trying to solve as many problems as I can, but I dont feel a big improvment. Any tips? Thank you.
Name |
---|