結果

問題 No.432 占い(Easy)
ユーザー matriematrie
提出日時 2020-12-05 08:26:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 9,068 KB
最終ジャッジ日時 2023-10-13 16:45:48
合計ジャッジ時間 4,639 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,844 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,888 KB
testcase_04 AC 23 ms
8,140 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 17 ms
7,836 KB
testcase_07 AC 23 ms
8,192 KB
testcase_08 AC 17 ms
7,840 KB
testcase_09 AC 20 ms
7,812 KB
testcase_10 AC 23 ms
7,812 KB
testcase_11 AC 91 ms
8,136 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 91 ms
8,172 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 418 ms
8,292 KB
testcase_19 AC 276 ms
8,116 KB
testcase_20 AC 128 ms
8,240 KB
testcase_21 AC 148 ms
8,144 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 21 ms
7,748 KB
testcase_25 AC 21 ms
7,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def L(s):
	if int(s)<10: return s
	else:
		r = ''
		for i in range(len(s)-1):
			r += L(str(int(s[i])+int(s[i+1])))
		return(L(r))

n = int(input())
for i in range(n):
	print(L(input()))
0