結果

問題 No.432 占い(Easy)
ユーザー matriematrie
提出日時 2020-12-05 08:27:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 186 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 9,004 KB
最終ジャッジ日時 2023-10-13 16:47:22
合計ジャッジ時間 4,680 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,844 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 16 ms
7,896 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 22 ms
8,092 KB
testcase_05 AC 17 ms
7,824 KB
testcase_06 AC 17 ms
7,744 KB
testcase_07 AC 22 ms
8,144 KB
testcase_08 AC 17 ms
7,744 KB
testcase_09 AC 20 ms
7,916 KB
testcase_10 AC 21 ms
7,888 KB
testcase_11 AC 77 ms
8,032 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 74 ms
8,068 KB
testcase_15 AC 16 ms
7,844 KB
testcase_16 AC 16 ms
7,848 KB
testcase_17 RE -
testcase_18 AC 346 ms
8,320 KB
testcase_19 AC 227 ms
8,244 KB
testcase_20 AC 107 ms
8,184 KB
testcase_21 AC 121 ms
8,220 KB
testcase_22 AC 21 ms
7,752 KB
testcase_23 AC 19 ms
7,752 KB
testcase_24 AC 20 ms
7,780 KB
testcase_25 AC 20 ms
7,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def L(s):
	if len(s)==1: 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