結果
問題 |
No.434 占い
|
ユーザー |
![]() |
提出日時 | 2016-10-14 23:18:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-22 10:16:59 |
合計ジャッジ時間 | 3,887 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 4 WA * 23 |
ソースコード
def f(s): length = len(s) if length == 1: return s c = 1 total = int(s[0]) for i in range(1, length): total += (length-i)*c//i*int(s[i]) return f(str(total)) n = int(input()) for _ in range(n): s = input() print(f(s))