結果

問題 No.432 占い(Easy)
ユーザー pypypymipypypymi
提出日時 2022-02-17 15:04:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,712 KB
実行使用メモリ 77,280 KB
最終ジャッジ日時 2023-09-11 17:42:47
合計ジャッジ時間 4,430 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,176 KB
testcase_01 AC 68 ms
71,212 KB
testcase_02 AC 71 ms
71,388 KB
testcase_03 AC 73 ms
71,020 KB
testcase_04 AC 109 ms
76,352 KB
testcase_05 AC 71 ms
71,212 KB
testcase_06 AC 71 ms
71,288 KB
testcase_07 AC 82 ms
76,584 KB
testcase_08 AC 74 ms
71,384 KB
testcase_09 AC 94 ms
76,152 KB
testcase_10 AC 91 ms
76,544 KB
testcase_11 AC 94 ms
77,280 KB
testcase_12 AC 168 ms
77,016 KB
testcase_13 AC 168 ms
77,216 KB
testcase_14 AC 94 ms
76,920 KB
testcase_15 AC 71 ms
71,324 KB
testcase_16 AC 71 ms
71,220 KB
testcase_17 AC 150 ms
77,068 KB
testcase_18 AC 123 ms
77,040 KB
testcase_19 AC 115 ms
76,980 KB
testcase_20 AC 99 ms
77,204 KB
testcase_21 AC 101 ms
76,920 KB
testcase_22 AC 89 ms
76,636 KB
testcase_23 AC 92 ms
76,440 KB
testcase_24 AC 93 ms
76,472 KB
testcase_25 AC 92 ms
76,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for i in range(n):
    s = list(map(int,list(input())))
    while len(s)>1:
        s_c = s.copy()
        for i in range(0,len(s)-1):
            s[i] = sum(map(int,list(str(s_c[i]+s_c[i+1]))))
        s = s[:len(s)-1]
    print(s[0])
            
0