結果

問題 No.2784 繰り上がりなし十進和
ユーザー 👑 p-adicp-adic
提出日時 2024-01-04 23:26:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 670 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 82,144 KB
実行使用メモリ 245,084 KB
最終ジャッジ日時 2024-09-27 18:51:48
合計ジャッジ時間 12,769 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,336 KB
testcase_01 AC 42 ms
61,808 KB
testcase_02 AC 653 ms
245,020 KB
testcase_03 AC 35 ms
52,424 KB
testcase_04 AC 33 ms
52,276 KB
testcase_05 AC 40 ms
61,028 KB
testcase_06 AC 39 ms
59,916 KB
testcase_07 AC 43 ms
62,232 KB
testcase_08 AC 61 ms
75,732 KB
testcase_09 AC 67 ms
75,676 KB
testcase_10 AC 65 ms
75,924 KB
testcase_11 AC 65 ms
75,920 KB
testcase_12 AC 603 ms
244,996 KB
testcase_13 AC 655 ms
244,764 KB
testcase_14 AC 318 ms
110,812 KB
testcase_15 AC 99 ms
80,356 KB
testcase_16 AC 271 ms
86,572 KB
testcase_17 AC 533 ms
160,228 KB
testcase_18 AC 538 ms
159,900 KB
testcase_19 AC 192 ms
88,308 KB
testcase_20 AC 669 ms
244,920 KB
testcase_21 AC 191 ms
85,484 KB
testcase_22 AC 670 ms
244,772 KB
testcase_23 AC 163 ms
80,584 KB
testcase_24 AC 544 ms
110,612 KB
testcase_25 AC 519 ms
160,268 KB
testcase_26 AC 565 ms
245,036 KB
testcase_27 AC 603 ms
245,084 KB
testcase_28 AC 320 ms
111,068 KB
testcase_29 AC 598 ms
245,016 KB
testcase_30 AC 327 ms
111,028 KB
testcase_31 AC 299 ms
86,700 KB
testcase_32 AC 362 ms
152,736 KB
testcase_33 AC 345 ms
152,824 KB
testcase_34 AC 542 ms
110,408 KB
testcase_35 AC 248 ms
84,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

R=range
B=10
P=[B**j for j in R(6)]
A=[]
for i in R(6):
	a=int(input())
	A+=[[a//P[j]%B for j in R(6)]]
S=[{0}for i in R(6)]
for i in R(6):S[i]={sum((t//P[j]+a*A[i][j])%B*P[j]for j in R(6))for a in R(B)for t in S[i-1]}
print(len(S[5]))
0