結果
| 問題 | No.434 占い |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2016-10-14 23:18:02 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
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))
matsu7874