結果
問題 | No.432 占い(Easy) |
ユーザー |
|
提出日時 | 2016-10-14 22:25:06 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 695 ms / 2,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 8,276 KB |
最終ジャッジ日時 | 2024-11-22 07:08:14 |
合計ジャッジ時間 | 4,441 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 |
ソースコード
# -*- coding: utf-8 -*-import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as collT = int(raw_input())for loop in xrange(T):S = raw_input()while len(S) > 1:U = ""for i, j in zip(S, S[1:]):x = int(i) + int(j)if x > 9: x = x/10 + x%10U += str(x)S = Uprint S