Contest Duration: ~ (local time) (120 minutes) Back to Home

Submission #7465945

Source Code Expand

Copy
```from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor

INF = float('inf')
def LIM(): return list(map(lambda x:int(x) - 1, sys.stdin.readline().split()))
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def LIRM(n): return [LIM() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 1000000007

n = 2025 - I()

def make_divisors(k):
divisors = []
for i in range(1, int(k ** 0.5) + 1):
num = k
if not num % i:
num //= i
divisors += [(i, num)]
if num != i:
divisors += [(num, i)]
divisors.sort()
return divisors

for i, j in make_divisors(n):
if i <= 9 and j <= 9:
print(i, 'x', j)```

#### Submission Info

Submission Time 2019-09-11 22:31:01+0900 C - 九九足し算 ryuhei_py PyPy3 (2.4.0) 100 1385 Byte AC 183 ms 39152 KB

#### Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 sample_01.txt, sample_02.txt, test_1953.txt, test_1971.txt, test_1977.txt, test_1983.txt, test_1989.txt, test_1990.txt, test_1993.txt, test_1995.txt, test_1997.txt, test_1998.txt, test_2001.txt, test_2009.txt, test_2013.txt, test_2017.txt, test_2019.txt, test_2020.txt, test_2022.txt, test_2024.txt
Case Name Status Exec Time Memory
sample_01.txt 180 ms 39152 KB
sample_02.txt 178 ms 39024 KB
test_1953.txt 182 ms 39024 KB
test_1971.txt 178 ms 39152 KB
test_1977.txt 178 ms 39024 KB
test_1983.txt 179 ms 39024 KB
test_1989.txt 179 ms 39024 KB
test_1990.txt 179 ms 39024 KB
test_1993.txt 180 ms 39024 KB
test_1995.txt 179 ms 39024 KB
test_1997.txt 183 ms 39024 KB
test_1998.txt 178 ms 39024 KB
test_2001.txt 179 ms 39024 KB
test_2009.txt 182 ms 39024 KB
test_2013.txt 181 ms 39024 KB
test_2017.txt 179 ms 39024 KB
test_2019.txt 181 ms 39024 KB
test_2020.txt 183 ms 39024 KB
test_2022.txt 182 ms 39024 KB
test_2024.txt 182 ms 39024 KB