結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-14 22:25:06 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 164 ms / 2,000 ms |
| + 8µs | |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 96,384 KB |
| 最終ジャッジ日時 | 2026-07-18 09:38:27 |
| 合計ジャッジ時間 | 5,664 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
T = 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%10
U += str(x)
S = U
print S