Submission #61373084
Source Code Expand
Copy
import sysinput = sys.stdin.readlinecnt = [0] * 82tot = 0for i in range(9):for j in range(9):v = (i + 1) * (j + 1)tot += vcnt[v] += 1x = int(input())ans = tot - cnt[x] * xprint(ans)
import sys input = sys.stdin.readline cnt = [0] * 82 tot = 0 for i in range(9): for j in range(9): v = (i + 1) * (j + 1) tot += v cnt[v] += 1 x = int(input()) ans = tot - cnt[x] * x print(ans)
Submission Info
Submission Time | |
---|---|
Task | B - 9x9 Sum |
User | SoleProprietor |
Language | Python (PyPy 3.10-v7.3.12) |
Score | 150 |
Code Size | 239 Byte |
Status | AC |
Exec Time | 67 ms |
Memory | 76584 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 66 ms | 76220 KB |
00_sample_01.txt | AC | 64 ms | 76584 KB |
00_sample_02.txt | AC | 64 ms | 76472 KB |
01_random_00.txt | AC | 67 ms | 76432 KB |
01_random_01.txt | AC | 64 ms | 76448 KB |
01_random_02.txt | AC | 65 ms | 76456 KB |
01_random_03.txt | AC | 65 ms | 76428 KB |
01_random_04.txt | AC | 66 ms | 76224 KB |
01_random_05.txt | AC | 64 ms | 76324 KB |
01_random_06.txt | AC | 63 ms | 76404 KB |
01_random_07.txt | AC | 63 ms | 76468 KB |
01_random_08.txt | AC | 64 ms | 76416 KB |
01_random_09.txt | AC | 62 ms | 76444 KB |
01_random_10.txt | AC | 63 ms | 76440 KB |