結果
問題 | No.2784 繰り上がりなし十進和 |
ユーザー |
![]() |
提出日時 | 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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
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))