結果

問題 No.432 占い(Easy)
ユーザー 👑 rin204rin204
提出日時 2021-08-29 15:59:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 76,500 KB
最終ジャッジ日時 2023-08-14 10:14:32
合計ジャッジ時間 3,315 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,312 KB
testcase_01 AC 60 ms
71,176 KB
testcase_02 AC 63 ms
71,216 KB
testcase_03 AC 64 ms
71,224 KB
testcase_04 AC 66 ms
75,540 KB
testcase_05 AC 62 ms
71,336 KB
testcase_06 AC 62 ms
71,172 KB
testcase_07 AC 65 ms
75,468 KB
testcase_08 AC 61 ms
71,196 KB
testcase_09 AC 81 ms
76,200 KB
testcase_10 AC 69 ms
76,320 KB
testcase_11 AC 67 ms
76,056 KB
testcase_12 AC 72 ms
76,100 KB
testcase_13 AC 70 ms
76,116 KB
testcase_14 AC 67 ms
76,228 KB
testcase_15 AC 62 ms
71,072 KB
testcase_16 AC 60 ms
71,424 KB
testcase_17 AC 66 ms
75,864 KB
testcase_18 AC 72 ms
76,204 KB
testcase_19 AC 71 ms
76,136 KB
testcase_20 AC 66 ms
76,108 KB
testcase_21 AC 67 ms
76,248 KB
testcase_22 AC 72 ms
75,920 KB
testcase_23 AC 72 ms
75,840 KB
testcase_24 AC 81 ms
76,424 KB
testcase_25 AC 81 ms
76,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    S = list(map(int, input()))
    l = len(S)
    for i in range(l - 1, 0, -1):
        for j in range(i):
            S[j] += S[j + 1]
            if S[j] >= 10:
                S[j] = S[j] % 10 + 1
    print(S[0])
    
for _ in range(int(input())):
    solve()
0