Killjee and easy problem
Practice
2.3 (3 votes)
Mathematics
Modular arithmetic
Easy
Problem
5% Success 7686 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

Killjee is solving an easy problem. Given an array a containing N positive integers. You need to find the magic value of the array.

Magic value of an array is \(\sum_{i=1}^{N}( {b_i}^i ) \). where, \(b_i\) is number of set bits of \(a_i\).

Find and print the answer Modulo \((10^{10}+11) \)

INPUT CONSTRAINTS

  • \(1 \le N \le 10^5\)
  • \(1 \le a_i \le 10^9\)

INPUT FORMAT
First line of input contains a single integer N. Next line contains N space separated integers, elements of array a.

OUTPUT FORMAT
Output a single integer, magic value of the array.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
Tags:
EasySimple-math
Points:20
1 votes
Tags:
Easy
Points:20
1 votes
Tags:
Easy
Editorial

No editorial available for this problem.