結果

問題 No.432 占い(Easy)
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-21 10:10:10
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,003 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 863 ms
コンパイル使用メモリ 7,128 KB
実行使用メモリ 6,600 KB
最終ジャッジ日時 2023-10-17 10:21:30
合計ジャッジ時間 6,326 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,440 KB
testcase_01 AC 11 ms
6,440 KB
testcase_02 AC 11 ms
6,440 KB
testcase_03 AC 12 ms
6,440 KB
testcase_04 AC 21 ms
6,440 KB
testcase_05 AC 12 ms
6,440 KB
testcase_06 AC 11 ms
6,440 KB
testcase_07 AC 21 ms
6,440 KB
testcase_08 AC 12 ms
6,440 KB
testcase_09 AC 12 ms
6,440 KB
testcase_10 AC 21 ms
6,440 KB
testcase_11 AC 110 ms
6,440 KB
testcase_12 AC 1,003 ms
6,600 KB
testcase_13 AC 999 ms
6,600 KB
testcase_14 AC 107 ms
6,440 KB
testcase_15 AC 12 ms
6,440 KB
testcase_16 AC 12 ms
6,440 KB
testcase_17 AC 647 ms
6,600 KB
testcase_18 AC 501 ms
6,440 KB
testcase_19 AC 332 ms
6,440 KB
testcase_20 AC 152 ms
6,440 KB
testcase_21 AC 176 ms
6,440 KB
testcase_22 AC 19 ms
6,440 KB
testcase_23 AC 15 ms
6,440 KB
testcase_24 AC 12 ms
6,440 KB
testcase_25 AC 13 ms
6,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(raw_input())
for i in range(0, T):
	S = raw_input()
	while len(S) != 1:
		newS = ''
		for i in range(0, len(S)-1):
			n = int(S[i])+int(S[i+1])
			if n >= 10: n = int(str(n)[0])+int(str(n)[1])
			newS = newS + str(n)
		S = newS
	print S
0