結果

問題 No.432 占い(Easy)
ユーザー ABKZABKZ
提出日時 2023-07-14 23:47:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 1,147 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 77,364 KB
最終ジャッジ日時 2023-10-14 14:18:19
合計ジャッジ時間 4,014 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,300 KB
testcase_01 AC 67 ms
71,104 KB
testcase_02 AC 69 ms
71,572 KB
testcase_03 AC 64 ms
71,320 KB
testcase_04 AC 73 ms
76,480 KB
testcase_05 AC 65 ms
71,352 KB
testcase_06 AC 61 ms
71,348 KB
testcase_07 AC 75 ms
76,516 KB
testcase_08 AC 61 ms
71,456 KB
testcase_09 AC 74 ms
76,268 KB
testcase_10 AC 80 ms
76,324 KB
testcase_11 AC 82 ms
77,116 KB
testcase_12 AC 106 ms
77,256 KB
testcase_13 AC 109 ms
76,964 KB
testcase_14 AC 83 ms
77,032 KB
testcase_15 AC 63 ms
71,332 KB
testcase_16 AC 63 ms
71,344 KB
testcase_17 AC 76 ms
76,504 KB
testcase_18 AC 97 ms
77,196 KB
testcase_19 AC 99 ms
77,344 KB
testcase_20 AC 89 ms
77,332 KB
testcase_21 AC 89 ms
77,364 KB
testcase_22 AC 76 ms
76,176 KB
testcase_23 AC 76 ms
76,312 KB
testcase_24 AC 77 ms
76,328 KB
testcase_25 AC 78 ms
76,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
S = [input() for _ in range(T)]

for s in S:
    a = [int(x) for x in s]
    for _ in range(len(a) - 1):
        a = [x if x < 10 else sum(divmod(x, 10)) for x in [a1 + a2 for a1, a2 in zip(a[1:],a[:-1])]]
    print(a[0])
0