結果

問題 No.432 占い(Easy)
ユーザー matriematrie
提出日時 2020-12-05 10:07:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 315 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 994 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 62,912 KB
最終ジャッジ日時 2023-10-13 21:17:24
合計ジャッジ時間 10,000 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
29,572 KB
testcase_01 AC 135 ms
29,612 KB
testcase_02 AC 133 ms
29,600 KB
testcase_03 AC 134 ms
29,608 KB
testcase_04 AC 138 ms
29,772 KB
testcase_05 AC 135 ms
29,596 KB
testcase_06 AC 133 ms
29,596 KB
testcase_07 AC 137 ms
29,792 KB
testcase_08 AC 137 ms
29,512 KB
testcase_09 AC 140 ms
29,564 KB
testcase_10 AC 141 ms
29,644 KB
testcase_11 AC 157 ms
29,716 KB
testcase_12 AC 313 ms
29,908 KB
testcase_13 AC 315 ms
29,776 KB
testcase_14 AC 159 ms
29,756 KB
testcase_15 AC 134 ms
29,548 KB
testcase_16 AC 135 ms
29,704 KB
testcase_17 AC 314 ms
29,780 KB
testcase_18 AC 223 ms
29,700 KB
testcase_19 AC 192 ms
29,792 KB
testcase_20 AC 161 ms
29,732 KB
testcase_21 AC 167 ms
29,852 KB
testcase_22 AC 138 ms
29,600 KB
testcase_23 AC 145 ms
29,696 KB
testcase_24 AC 137 ms
29,636 KB
testcase_25 AC 139 ms
62,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as p
n = int(input())

for i in range(n):
	s= [int(x) for x in list(input())]
	for j in range(len(s)-1):
		s=p.array(s[:-1])+p.array(s[1:])
		s=[x//10+x%10 for x in s]
	print(*s)
0