結果
問題 |
No.432 占い(Easy)
|
ユーザー |
![]() |
提出日時 | 2020-04-18 22:08:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 15,232 KB |
最終ジャッジ日時 | 2024-10-04 00:24:49 |
合計ジャッジ時間 | 2,178 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 RE * 2 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() def f(S): if len(S)==1: return S[0] else: T=[] for i in range(len(S)-1): t=S[i]+S[i+1] if t>=10: t=t%10+1 T.append(t) return f(T) x=int(input()) for _ in range(x): print(f([int(s) for s in list(input())]))