結果

問題 No.2784 繰り上がりなし十進和
ユーザー ypwwypww
提出日時 2024-06-15 11:05:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 82,576 KB
実行使用メモリ 84,280 KB
最終ジャッジ日時 2024-06-15 11:05:50
合計ジャッジ時間 25,206 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 649 ms
84,068 KB
testcase_01 AC 633 ms
83,828 KB
testcase_02 AC 637 ms
83,940 KB
testcase_03 AC 599 ms
83,768 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 607 ms
83,912 KB
testcase_10 AC 636 ms
84,112 KB
testcase_11 WA -
testcase_12 AC 644 ms
83,860 KB
testcase_13 AC 617 ms
84,080 KB
testcase_14 AC 638 ms
83,772 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [input() for _ in range(6)]
v = [False] * 1000000
for i in range(0, 1000000):
    x = [0] * 6
    for j in range(6):
        cnt = i
        cnt //= 10 ** j
        cnt %= 10
        for k in range(6):
            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