結果

問題 No.2784 繰り上がりなし十進和
ユーザー p-adicp-adic
提出日時 2024-01-04 23:26:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 730 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 244,548 KB
最終ジャッジ日時 2024-01-04 23:27:05
合計ジャッジ時間 14,617 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 45 ms
61,872 KB
testcase_02 AC 730 ms
244,544 KB
testcase_03 AC 36 ms
53,460 KB
testcase_04 AC 36 ms
53,460 KB
testcase_05 AC 44 ms
61,872 KB
testcase_06 AC 43 ms
59,712 KB
testcase_07 AC 44 ms
61,872 KB
testcase_08 AC 65 ms
75,648 KB
testcase_09 AC 70 ms
75,648 KB
testcase_10 AC 71 ms
75,648 KB
testcase_11 AC 70 ms
75,648 KB
testcase_12 AC 674 ms
244,544 KB
testcase_13 AC 681 ms
244,544 KB
testcase_14 AC 380 ms
110,672 KB
testcase_15 AC 108 ms
80,380 KB
testcase_16 AC 316 ms
86,280 KB
testcase_17 AC 604 ms
159,756 KB
testcase_18 AC 599 ms
159,756 KB
testcase_19 AC 224 ms
88,016 KB
testcase_20 AC 714 ms
244,544 KB
testcase_21 AC 205 ms
85,208 KB
testcase_22 AC 711 ms
244,544 KB
testcase_23 AC 183 ms
80,640 KB
testcase_24 AC 599 ms
110,068 KB
testcase_25 AC 640 ms
159,756 KB
testcase_26 AC 636 ms
244,544 KB
testcase_27 AC 681 ms
244,544 KB
testcase_28 AC 373 ms
110,672 KB
testcase_29 AC 706 ms
244,548 KB
testcase_30 AC 389 ms
110,544 KB
testcase_31 AC 374 ms
86,352 KB
testcase_32 AC 403 ms
153,056 KB
testcase_33 AC 389 ms
153,056 KB
testcase_34 AC 682 ms
110,064 KB
testcase_35 AC 302 ms
82,904 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