結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-14 23:47:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 239 bytes |
| コンパイル時間 | 638 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 75,956 KB |
| 最終ジャッジ日時 | 2024-09-16 08:56:01 |
| 合計ジャッジ時間 | 2,994 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
T = int(input())
S = [input() for _ in range(T)]
for s in S:
a = [int(x) for x in s]
for _ in range(len(a) - 1):
a = [x if x < 10 else sum(divmod(x, 10)) for x in [a1 + a2 for a1, a2 in zip(a[1:],a[:-1])]]
print(a[0])