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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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.net/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 |
---|