結果

問題 No.2784 繰り上がりなし十進和
ユーザー 👑 p-adicp-adic
提出日時 2024-01-04 13:03:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 245 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 90,536 KB
最終ジャッジ日時 2024-09-27 18:41:37
合計ジャッジ時間 47,938 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 TLE -
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 31 ms
10,752 KB
testcase_06 AC 31 ms
10,752 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 62 ms
10,880 KB
testcase_09 AC 95 ms
11,008 KB
testcase_10 AC 92 ms
11,008 KB
testcase_11 AC 95 ms
11,008 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 AC 1,337 ms
33,064 KB
testcase_15 AC 281 ms
15,408 KB
testcase_16 AC 1,263 ms
24,392 KB
testcase_17 TLE -
testcase_18 TLE -
testcase_19 AC 711 ms
23,408 KB
testcase_20 TLE -
testcase_21 AC 737 ms
23,548 KB
testcase_22 TLE -
testcase_23 AC 730 ms
18,308 KB
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 AC 1,353 ms
33,204 KB
testcase_29 TLE -
testcase_30 AC 1,405 ms
33,096 KB
testcase_31 AC 1,265 ms
24,328 KB
testcase_32 AC 1,479 ms
50,164 KB
testcase_33 AC 1,406 ms
50,504 KB
testcase_34 TLE -
testcase_35 AC 1,265 ms
19,300 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