Submission #19432724


Source Code Expand

Copy
import math
a, b = map(int, input().split())
if a <= math.ceil(a / 4) * 4 <= b:
  ans = 1
if a <= math.ceil(a / 100) * 100 <= b:
  ans -= 1
if a <= math.ceil(a / 400) * 400 <= b:
  ans += 1
ans += (b + 1 - math.ceil(a / 4) * 4) // 4
ans -= (b + 1 - math.ceil(a / 100) * 100) // 100
ans += (b + 1 - math.ceil(a / 400) * 400) // 400
print(ans)

Submission Info

Submission Time
Task C - 2月29日
User Chippppp
Language Python (3.8.2)
Score 0
Code Size 352 Byte
Status RE
Exec Time 26 ms
Memory 9196 KB

Judge Result

Set Name sub All
Score / Max Score 0 / 25 0 / 75
Status
AC × 7
WA × 2
RE × 1
AC × 19
WA × 2
RE × 1
Set Name Test Cases
sub test_01A.txt, test_02A.txt, test_03A.txt, test_04A.txt, test_05A.txt, test_07A.txt, test_09A.txt, test_11A.txt, test_13A.txt, test_15A.txt
All sample_01.txt, sample_02.txt, sample_03.txt, test_01A.txt, test_02A.txt, test_03A.txt, test_04A.txt, test_05A.txt, test_06.txt, test_07A.txt, test_08.txt, test_09A.txt, test_10.txt, test_11A.txt, test_12.txt, test_13A.txt, test_14.txt, test_15A.txt, test_16.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
sample_01.txt AC 18 ms 8872 KB
sample_02.txt AC 26 ms 9076 KB
sample_03.txt AC 17 ms 9080 KB
test_01A.txt RE 24 ms 8908 KB
test_02A.txt AC 25 ms 9064 KB
test_03A.txt WA 23 ms 9012 KB
test_04A.txt AC 18 ms 9196 KB
test_05A.txt AC 26 ms 8900 KB
test_06.txt AC 16 ms 9140 KB
test_07A.txt AC 24 ms 9072 KB
test_08.txt AC 20 ms 8912 KB
test_09A.txt WA 18 ms 9016 KB
test_10.txt AC 21 ms 9068 KB
test_11A.txt AC 20 ms 9012 KB
test_12.txt AC 18 ms 8908 KB
test_13A.txt AC 20 ms 9012 KB
test_14.txt AC 17 ms 9020 KB
test_15A.txt AC 26 ms 8904 KB
test_16.txt AC 19 ms 8912 KB