結果

問題 No.432 占い(Easy)
ユーザー YCescaYCesca
提出日時 2016-10-14 23:22:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 238 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2024-05-02 01:13:14
合計ジャッジ時間 3,893 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 32 ms
10,624 KB
testcase_04 AC 37 ms
10,752 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 32 ms
10,624 KB
testcase_07 AC 35 ms
10,752 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 37 ms
10,624 KB
testcase_10 AC 40 ms
10,624 KB
testcase_11 AC 76 ms
10,752 KB
testcase_12 RE -
testcase_13 AC 492 ms
15,104 KB
testcase_14 AC 76 ms
10,752 KB
testcase_15 AC 32 ms
10,624 KB
testcase_16 AC 31 ms
10,752 KB
testcase_17 RE -
testcase_18 AC 256 ms
11,904 KB
testcase_19 AC 178 ms
11,264 KB
testcase_20 AC 96 ms
10,880 KB
testcase_21 AC 107 ms
11,136 KB
testcase_22 AC 37 ms
10,752 KB
testcase_23 AC 35 ms
10,624 KB
testcase_24 AC 37 ms
10,752 KB
testcase_25 AC 37 ms
10,624 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