結果
問題 |
No.432 占い(Easy)
|
ユーザー |
![]() |
提出日時 | 2016-10-28 10:41:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 204 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-24 05:05:59 |
合計ジャッジ時間 | 1,983 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 3 |
other | AC * 3 RE * 19 |
ソースコード
t=int(input()) i = 0 for _ in [0]*t: s=input() ls = len(s) while ls!=1: s2="" while i < ls - 1: t=int(s[i])+int(s[i+1]) if t//10!=0:t=t%10+t//10 s2+=str(t) i+=1 i = 0 s=s2 print(s)