Submission #64541921
Source Code Expand
import math
N = int(input())
count = 0
a = 1
while True:
pow2 = 1 << a
if pow2 > N:
break
max_b = int((N // pow2) ** 0.5)
count += max_b
a += 1
print(count)
Submission Info
| Submission Time | |
|---|---|
| Task | C - 2^a b^2 |
| User | sivasaran2003 |
| Language | Python (PyPy 3.10-v7.3.12) |
| Score | 0 |
| Code Size | 202 Byte |
| Status | WA |
| Exec Time | 67 ms |
| Memory | 76976 KiB |
Judge Result
| Set Name | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 350 | ||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | WA | 63 ms | 76780 KiB |
| example_01.txt | WA | 64 ms | 76480 KiB |
| example_02.txt | WA | 65 ms | 76632 KiB |
| hand_00.txt | AC | 67 ms | 76672 KiB |
| hand_01.txt | AC | 66 ms | 76608 KiB |
| hand_02.txt | AC | 65 ms | 76860 KiB |
| hand_03.txt | WA | 64 ms | 76836 KiB |
| hand_04.txt | WA | 64 ms | 76660 KiB |
| hand_05.txt | WA | 64 ms | 76800 KiB |
| hand_06.txt | WA | 63 ms | 76572 KiB |
| hand_07.txt | WA | 61 ms | 76744 KiB |
| hand_08.txt | WA | 65 ms | 76872 KiB |
| hand_09.txt | WA | 64 ms | 76772 KiB |
| hand_10.txt | WA | 67 ms | 76624 KiB |
| random_00.txt | WA | 65 ms | 76768 KiB |
| random_01.txt | WA | 65 ms | 76976 KiB |
| random_02.txt | WA | 66 ms | 76812 KiB |
| random_03.txt | WA | 65 ms | 76820 KiB |
| random_04.txt | WA | 66 ms | 76844 KiB |
| random_05.txt | WA | 65 ms | 76696 KiB |
| random_06.txt | WA | 65 ms | 76864 KiB |
| random_07.txt | WA | 64 ms | 76748 KiB |
| random_08.txt | WA | 66 ms | 76888 KiB |
| random_09.txt | WA | 65 ms | 76508 KiB |
| random_10.txt | WA | 67 ms | 76416 KiB |
| random_11.txt | WA | 67 ms | 76712 KiB |
| random_12.txt | WA | 64 ms | 76500 KiB |
| random_13.txt | WA | 64 ms | 76848 KiB |
| random_14.txt | WA | 67 ms | 76620 KiB |