結果

問題 No.432 占い(Easy)
ユーザー first_vil
提出日時 2020-08-07 13:30:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 66,552 KB
最終ジャッジ日時 2024-09-23 02:03:39
合計ジャッジ時間 2,289 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    s=[int(i) for i in input()]
    while 1<len(s):
        s=[(s[i]+s[i+1])%10+(s[i]+s[i+1])//10 for i in range(len(s)-1)]
    print(s[0])
for _ in range(int(input())):
    solve()
0