結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 519 ms
84,900 KB
testcase_01 AC 494 ms
84,900 KB
testcase_02 AC 533 ms
84,900 KB
testcase_03 AC 440 ms
85,656 KB
testcase_04 AC 518 ms
84,900 KB
testcase_05 AC 482 ms
84,900 KB
testcase_06 AC 493 ms
84,900 KB
testcase_07 AC 497 ms
84,900 KB
testcase_08 AC 493 ms
84,892 KB
testcase_09 AC 520 ms
84,900 KB
testcase_10 AC 494 ms
84,900 KB
testcase_11 AC 473 ms
84,900 KB
testcase_12 AC 515 ms
84,900 KB
testcase_13 AC 475 ms
84,900 KB
testcase_14 AC 513 ms
84,900 KB
testcase_15 AC 485 ms
84,900 KB
testcase_16 AC 588 ms
84,900 KB
testcase_17 AC 600 ms
84,900 KB
testcase_18 AC 615 ms
84,900 KB
testcase_19 AC 568 ms
84,904 KB
testcase_20 AC 627 ms
84,900 KB
testcase_21 AC 569 ms
84,900 KB
testcase_22 AC 631 ms
84,900 KB
testcase_23 AC 599 ms
84,900 KB
testcase_24 AC 666 ms
84,900 KB
testcase_25 AC 590 ms
84,900 KB
testcase_26 AC 561 ms
84,900 KB
testcase_27 AC 640 ms
84,900 KB
testcase_28 AC 540 ms
84,900 KB
testcase_29 AC 587 ms
84,900 KB
testcase_30 AC 559 ms
84,900 KB
testcase_31 AC 544 ms
84,900 KB
testcase_32 AC 598 ms
84,892 KB
testcase_33 AC 612 ms
84,900 KB
testcase_34 AC 622 ms
84,900 KB
testcase_35 AC 630 ms
84,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]*B**6
t=0
for a in R(B):
	for b in R(B):
		for c in R(B):
			for d in R(B):
				for e in R(B):
					for f in R(B):S[t],t=1,sum((t//P[j]+A[5][j])%B*P[j]for j in R(6))
					t=sum((t//P[j]+A[4][j])%B*P[j]for j in R(6))
				t=sum((t//P[j]+A[3][j])%B*P[j]for j in R(6))
			t=sum((t//P[j]+A[2][j])%B*P[j]for j in R(6))
		t=sum((t//P[j]+A[1][j])%B*P[j]for j in R(6))
	t=sum((t//P[j]+A[0][j])%B*P[j]for j in R(6))
print(sum(S))
0