結果

問題 No.2784 繰り上がりなし十進和
ユーザー p-adicp-adic
提出日時 2024-01-04 13:02:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 738 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 241,300 KB
最終ジャッジ日時 2024-01-04 13:02:40
合計ジャッジ時間 14,270 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 46 ms
61,872 KB
testcase_02 AC 633 ms
241,268 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 42 ms
59,584 KB
testcase_07 AC 44 ms
61,872 KB
testcase_08 AC 65 ms
75,528 KB
testcase_09 AC 71 ms
75,656 KB
testcase_10 AC 70 ms
75,656 KB
testcase_11 AC 71 ms
75,656 KB
testcase_12 AC 604 ms
241,268 KB
testcase_13 AC 583 ms
241,268 KB
testcase_14 AC 342 ms
116,024 KB
testcase_15 AC 108 ms
80,752 KB
testcase_16 AC 336 ms
87,720 KB
testcase_17 AC 709 ms
156,848 KB
testcase_18 AC 643 ms
156,500 KB
testcase_19 AC 222 ms
92,696 KB
testcase_20 AC 738 ms
241,300 KB
testcase_21 AC 205 ms
88,692 KB
testcase_22 AC 706 ms
241,272 KB
testcase_23 AC 190 ms
80,264 KB
testcase_24 AC 648 ms
106,948 KB
testcase_25 AC 672 ms
156,880 KB
testcase_26 AC 664 ms
241,300 KB
testcase_27 AC 719 ms
241,300 KB
testcase_28 AC 372 ms
115,184 KB
testcase_29 AC 703 ms
241,300 KB
testcase_30 AC 365 ms
115,188 KB
testcase_31 AC 302 ms
87,688 KB
testcase_32 AC 384 ms
153,528 KB
testcase_33 AC 429 ms
153,528 KB
testcase_34 AC 599 ms
106,948 KB
testcase_35 AC 320 ms
83,396 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):
	for t in S[i-1]:
		for a in R(B):S[i].add(sum((t//P[j]+a*A[i][j])%B*P[j]for j in R(6)))
print(len(S[5]))
0