0

Need help with a bitmasks problem

 7 months ago
source link: https://codeforces.com/blog/entry/125359
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

By forIoop, 110 minutes ago,

Problem

Here's my attempt:

Code

Somehow I'm getting WA but unfortunately I can't view the test. I can't put my finger on the issue, may someone help?

Note: I've tried using long long for all variables, still got WA on the same test.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK