Submission #201466


Source Code Expand

#!/usr/bin/env python


if __name__ == "__main__":
    N = input()

    total = 0
    for A in range(1, 10):
        for B in range(1, 10):
            total += A * B

    for A in range(1, 10):
        for B in range(1, 10):
            if N + A * B == total:
                print A, 'x', B

Submission Info

Submission Time
Task C - 九九足し算
User Hachimori
Language Python (2.7.3)
Score 100
Code Size 308 Byte
Status AC
Exec Time 53 ms
Memory 3420 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 18
Set Name Test Cases
All 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 AC 48 ms 3328 KB
sample_02.txt AC 51 ms 3336 KB
test_1953.txt AC 50 ms 3328 KB
test_1971.txt AC 50 ms 3312 KB
test_1977.txt AC 52 ms 3332 KB
test_1983.txt AC 51 ms 3380 KB
test_1989.txt AC 49 ms 3336 KB
test_1990.txt AC 51 ms 3340 KB
test_1993.txt AC 50 ms 3340 KB
test_1995.txt AC 53 ms 3420 KB
test_1997.txt AC 50 ms 3336 KB
test_1998.txt AC 49 ms 3332 KB
test_2001.txt AC 51 ms 3336 KB
test_2009.txt AC 51 ms 3388 KB
test_2013.txt AC 50 ms 3340 KB
test_2017.txt AC 50 ms 3324 KB
test_2019.txt AC 50 ms 3332 KB
test_2020.txt AC 50 ms 3380 KB
test_2022.txt AC 50 ms 3384 KB
test_2024.txt AC 50 ms 3336 KB