結果

問題 No.432 占い(Easy)
ユーザー YCescaYCesca
提出日時 2016-10-14 23:23:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 212 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 80,128 KB
最終ジャッジ日時 2024-05-02 01:14:53
合計ジャッジ時間 3,448 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
51,456 KB
testcase_01 AC 44 ms
51,840 KB
testcase_02 AC 42 ms
52,096 KB
testcase_03 AC 45 ms
52,736 KB
testcase_04 AC 61 ms
66,048 KB
testcase_05 AC 45 ms
52,736 KB
testcase_06 AC 46 ms
52,480 KB
testcase_07 AC 63 ms
65,280 KB
testcase_08 AC 52 ms
52,608 KB
testcase_09 AC 77 ms
65,792 KB
testcase_10 AC 77 ms
68,992 KB
testcase_11 AC 104 ms
75,776 KB
testcase_12 AC 203 ms
80,128 KB
testcase_13 AC 212 ms
79,872 KB
testcase_14 AC 91 ms
75,648 KB
testcase_15 AC 46 ms
52,992 KB
testcase_16 AC 45 ms
52,864 KB
testcase_17 AC 169 ms
80,128 KB
testcase_18 AC 141 ms
77,824 KB
testcase_19 AC 117 ms
77,056 KB
testcase_20 AC 98 ms
76,032 KB
testcase_21 AC 98 ms
76,288 KB
testcase_22 AC 74 ms
67,456 KB
testcase_23 AC 73 ms
66,176 KB
testcase_24 AC 74 ms
65,536 KB
testcase_25 AC 75 ms
65,152 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