結果

問題 No.432 占い(Easy)
ユーザー ABKZABKZ
提出日時 2023-07-23 21:36:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 81,724 KB
実行使用メモリ 75,496 KB
最終ジャッジ日時 2023-10-25 05:37:19
合計ジャッジ時間 4,591 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,512 KB
testcase_01 AC 36 ms
53,512 KB
testcase_02 AC 37 ms
53,512 KB
testcase_03 AC 37 ms
53,512 KB
testcase_04 AC 48 ms
64,176 KB
testcase_05 AC 38 ms
53,512 KB
testcase_06 AC 41 ms
53,512 KB
testcase_07 AC 48 ms
64,180 KB
testcase_08 AC 38 ms
53,512 KB
testcase_09 AC 62 ms
66,160 KB
testcase_10 AC 59 ms
68,288 KB
testcase_11 AC 64 ms
75,404 KB
testcase_12 AC 106 ms
75,464 KB
testcase_13 AC 104 ms
75,496 KB
testcase_14 AC 63 ms
75,412 KB
testcase_15 AC 37 ms
53,512 KB
testcase_16 AC 37 ms
53,512 KB
testcase_17 AC 59 ms
74,808 KB
testcase_18 AC 81 ms
75,420 KB
testcase_19 AC 76 ms
75,416 KB
testcase_20 AC 66 ms
75,408 KB
testcase_21 AC 67 ms
75,412 KB
testcase_22 AC 57 ms
68,448 KB
testcase_23 AC 56 ms
64,108 KB
testcase_24 AC 62 ms
66,160 KB
testcase_25 AC 62 ms
66,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())

for _ in range(T):
    *S, = map(int, input())
    for _ in range(len(S)-1):
        a = [x1 + x2 for x1, x2 in zip(S,S[1:])]
        S = [x if x < 10 else sum(divmod(x,10)) for x in a]
    print(S[0])
0