Submission #19418675
Source Code Expand
Copy
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase, digits from bisect import bisect, bisect_left from heapq import heappush, heappop from functools import reduce def input(): return sys.stdin.readline().strip() def INT(): return int(input()) def MAP(): return map(int, input().split()) def LIST(): return list(map(int, input().split())) def ZIP(n): return zip(*(MAP() for _ in range(n))) sys.setrecursionlimit(10 ** 9) INF = float('inf') mod = 10 ** 9 + 7 A, B = MAP() def urum(n): # 1 - n 年のうるう年の数を数えます a = n // 4 b = n // 100 c = n // 400 d = a - (b - c) return d print(urum(B) - urum(A - 1))
Submission Info
Submission Time | |
---|---|
Task | C - 2月29日 |
User | keiouok |
Language | Python (3.8.2) |
Score | 100 |
Code Size | 962 Byte |
Status | AC |
Exec Time | 36 ms |
Memory | 9844 KB |
Judge Result
Set Name | sub | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 25 / 25 | 75 / 75 | ||||
Status |
|
|
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 | 35 ms | 9644 KB |
sample_02.txt | AC | 33 ms | 9824 KB |
sample_03.txt | AC | 32 ms | 9756 KB |
test_01A.txt | AC | 34 ms | 9832 KB |
test_02A.txt | AC | 35 ms | 9740 KB |
test_03A.txt | AC | 35 ms | 9656 KB |
test_04A.txt | AC | 31 ms | 9744 KB |
test_05A.txt | AC | 30 ms | 9684 KB |
test_06.txt | AC | 27 ms | 9660 KB |
test_07A.txt | AC | 34 ms | 9680 KB |
test_08.txt | AC | 35 ms | 9788 KB |
test_09A.txt | AC | 33 ms | 9704 KB |
test_10.txt | AC | 27 ms | 9660 KB |
test_11A.txt | AC | 30 ms | 9844 KB |
test_12.txt | AC | 34 ms | 9744 KB |
test_13A.txt | AC | 31 ms | 9680 KB |
test_14.txt | AC | 26 ms | 9788 KB |
test_15A.txt | AC | 28 ms | 9720 KB |
test_16.txt | AC | 36 ms | 9660 KB |