結果

問題 No.432 占い(Easy)
ユーザー YCescaYCesca
提出日時 2016-10-14 23:23:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 2,826 ms
コンパイル使用メモリ 86,540 KB
実行使用メモリ 81,640 KB
最終ジャッジ日時 2023-08-14 13:00:08
合計ジャッジ時間 4,163 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,376 KB
testcase_01 AC 68 ms
71,328 KB
testcase_02 AC 68 ms
71,316 KB
testcase_03 AC 71 ms
71,312 KB
testcase_04 AC 79 ms
76,328 KB
testcase_05 AC 69 ms
71,320 KB
testcase_06 AC 72 ms
71,428 KB
testcase_07 AC 82 ms
76,492 KB
testcase_08 AC 68 ms
71,312 KB
testcase_09 AC 90 ms
76,524 KB
testcase_10 AC 89 ms
76,480 KB
testcase_11 AC 103 ms
76,948 KB
testcase_12 AC 188 ms
81,640 KB
testcase_13 AC 189 ms
81,612 KB
testcase_14 AC 104 ms
76,968 KB
testcase_15 AC 72 ms
71,316 KB
testcase_16 AC 69 ms
71,128 KB
testcase_17 AC 171 ms
81,436 KB
testcase_18 AC 146 ms
79,204 KB
testcase_19 AC 127 ms
78,864 KB
testcase_20 AC 108 ms
77,200 KB
testcase_21 AC 109 ms
77,380 KB
testcase_22 AC 89 ms
76,508 KB
testcase_23 AC 92 ms
76,384 KB
testcase_24 AC 91 ms
76,528 KB
testcase_25 AC 89 ms
76,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
def tasu(x):
    if len(x) == 1: return x[0]
    else:    
        x1 = [sum(map(int,list(str(x[i2] + x[i2+1])))) for i2 in range(len(x)-1)]
    return tasu(x1)
for i in range(t):
    print(tasu(list(map(int,input()))))

0