Submission #19806216


Source Code Expand

n=int(input())
print(2*sum((2*n-i*~-i)%(2*i)==0and 2*n//i>i-1 for i in range(1,10**7)))

Submission Info

Submission Time
Task D - Staircase Sequences
User snowrabbit
Language PyPy3 (7.3.0)
Score 400
Code Size 88 Byte
Status AC
Exec Time 272 ms
Memory 67936 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 3
AC × 33
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_hand.txt, 05_hand.txt, 06_hand.txt, 07_small.txt, 08_small.txt, 09_small.txt, 10_small.txt, 11_small.txt, 12_large.txt, 13_large.txt, 14_large.txt, 15_large.txt, 16_large.txt, 17_large.txt, 18_large.txt, 19_large.txt, 20_power.txt, 21_power.txt, 22_power.txt, 23_power.txt, 24_power.txt, 25_power.txt, 26_power.txt, 27_power.txt, 28_power.txt, 29_power.txt, 30_prod.txt, 31_prod.txt, 32_prod.txt, 33_prod.txt
Case Name Status Exec Time Memory
01_sample.txt AC 272 ms 67364 KiB
02_sample.txt AC 226 ms 67240 KiB
03_sample.txt AC 229 ms 67404 KiB
04_hand.txt AC 223 ms 67408 KiB
05_hand.txt AC 223 ms 67580 KiB
06_hand.txt AC 225 ms 67212 KiB
07_small.txt AC 223 ms 67528 KiB
08_small.txt AC 224 ms 67216 KiB
09_small.txt AC 232 ms 67288 KiB
10_small.txt AC 229 ms 67344 KiB
11_small.txt AC 229 ms 67212 KiB
12_large.txt AC 224 ms 67376 KiB
13_large.txt AC 221 ms 67196 KiB
14_large.txt AC 224 ms 67512 KiB
15_large.txt AC 223 ms 67284 KiB
16_large.txt AC 227 ms 67496 KiB
17_large.txt AC 227 ms 67504 KiB
18_large.txt AC 228 ms 67408 KiB
19_large.txt AC 226 ms 67608 KiB
20_power.txt AC 228 ms 67636 KiB
21_power.txt AC 221 ms 67476 KiB
22_power.txt AC 229 ms 67936 KiB
23_power.txt AC 223 ms 67224 KiB
24_power.txt AC 225 ms 67636 KiB
25_power.txt AC 225 ms 67288 KiB
26_power.txt AC 221 ms 67496 KiB
27_power.txt AC 228 ms 67240 KiB
28_power.txt AC 227 ms 67360 KiB
29_power.txt AC 222 ms 67496 KiB
30_prod.txt AC 226 ms 67512 KiB
31_prod.txt AC 227 ms 67636 KiB
32_prod.txt AC 227 ms 67472 KiB
33_prod.txt AC 225 ms 67332 KiB