結果

問題 No.432 占い(Easy)
ユーザー syunsukesyunsuke
提出日時 2020-11-08 10:07:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 1,274 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 77,332 KB
最終ジャッジ日時 2023-09-29 21:06:05
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,028 KB
testcase_01 AC 68 ms
71,308 KB
testcase_02 AC 67 ms
71,308 KB
testcase_03 AC 69 ms
71,032 KB
testcase_04 AC 92 ms
75,884 KB
testcase_05 AC 69 ms
71,316 KB
testcase_06 AC 71 ms
71,040 KB
testcase_07 AC 72 ms
76,088 KB
testcase_08 AC 68 ms
71,516 KB
testcase_09 AC 102 ms
76,160 KB
testcase_10 AC 90 ms
77,332 KB
testcase_11 AC 80 ms
76,632 KB
testcase_12 AC 82 ms
76,980 KB
testcase_13 AC 83 ms
76,860 KB
testcase_14 AC 80 ms
76,524 KB
testcase_15 AC 69 ms
71,208 KB
testcase_16 AC 68 ms
71,480 KB
testcase_17 AC 83 ms
76,820 KB
testcase_18 AC 83 ms
76,884 KB
testcase_19 AC 83 ms
76,472 KB
testcase_20 AC 82 ms
76,600 KB
testcase_21 AC 79 ms
76,656 KB
testcase_22 AC 81 ms
76,424 KB
testcase_23 AC 84 ms
76,372 KB
testcase_24 AC 95 ms
75,864 KB
testcase_25 AC 94 ms
76,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q = int(input())
for q in range(Q):
    L=list(input())
    for i in range(len(L)):
        L[i]=int(L[i])
    for i in range(len(L)-1):
        l=[]
        for j in range(1,len(L)):
            l.append((L[j]+L[j-1])%10+(L[j]+L[j-1])//10)
        L=l
    print(L[0])
0