結果

問題 No.2784 繰り上がりなし十進和
ユーザー ypww
提出日時 2024-06-15 11:16:58
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 389 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 84,496 KB
最終ジャッジ日時 2024-06-15 11:18:27
合計ジャッジ時間 84,492 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [input() for _ in range(6)]
v = [False] * 1000000
for i in range(1, 11**6):
    x = [0] * 6
    for j in range(6):
        for k in range(6):
            cnt = (i // 11 ** k) % 11
            x[j] += (ord(a[k][j]) - ord('0')) * cnt
            x[j] %= 10
    off = 1
    now = 0
    for j in range(6):
        now += x[j] * off
        off *= 10
    v[now] = True

print(v.count(True))
0