結果

問題 No.2784 繰り上がりなし十進和
ユーザー rlangevinrlangevin
提出日時 2024-06-14 22:10:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,304 ms / 2,000 ms
コード長 538 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 82,420 KB
実行使用メモリ 196,928 KB
最終ジャッジ日時 2024-06-14 22:10:56
合計ジャッジ時間 39,403 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 823 ms
76,288 KB
testcase_01 AC 826 ms
76,544 KB
testcase_02 AC 1,280 ms
196,724 KB
testcase_03 AC 844 ms
76,492 KB
testcase_04 AC 808 ms
76,660 KB
testcase_05 AC 839 ms
76,508 KB
testcase_06 AC 823 ms
76,172 KB
testcase_07 AC 852 ms
76,320 KB
testcase_08 AC 833 ms
76,416 KB
testcase_09 AC 891 ms
76,388 KB
testcase_10 AC 819 ms
76,288 KB
testcase_11 AC 834 ms
76,416 KB
testcase_12 AC 1,279 ms
196,384 KB
testcase_13 AC 1,275 ms
196,212 KB
testcase_14 AC 989 ms
105,136 KB
testcase_15 AC 857 ms
82,444 KB
testcase_16 AC 970 ms
86,200 KB
testcase_17 AC 1,129 ms
134,596 KB
testcase_18 AC 1,128 ms
134,092 KB
testcase_19 AC 997 ms
89,344 KB
testcase_20 AC 1,294 ms
196,364 KB
testcase_21 AC 963 ms
87,444 KB
testcase_22 AC 1,282 ms
196,232 KB
testcase_23 AC 915 ms
78,900 KB
testcase_24 AC 1,040 ms
97,536 KB
testcase_25 AC 1,171 ms
134,328 KB
testcase_26 AC 1,292 ms
196,648 KB
testcase_27 AC 1,304 ms
196,196 KB
testcase_28 AC 1,060 ms
104,500 KB
testcase_29 AC 1,295 ms
196,928 KB
testcase_30 AC 1,055 ms
104,332 KB
testcase_31 AC 954 ms
84,676 KB
testcase_32 AC 1,172 ms
135,004 KB
testcase_33 AC 1,160 ms
134,724 KB
testcase_34 AC 1,006 ms
97,400 KB
testcase_35 AC 916 ms
80,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *

A = []
for i in range(6):
    L = [int(a) for a in list(input())]
    A.append(L)
    
def f(L, x):
    LL = [0] * 6
    for i in range(6):
        LL[i] = L[i] *  x
        LL[i] %= 10
    return L
    
ans = set()
for t in product(range(10), repeat=6):
    temp = [0] * 6
    for i in range(6):
        # g = f(A[i], t[i])
        for j in range(6):
            temp[j] += A[i][j] * t[i]
            temp[j] %= 10
    for i in range(6):
        temp[i] = str(temp[i])
    ans.add("".join(temp))

print(len(ans))
0