結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2016-10-14 23:19:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-22 10:19:15 |
| 合計ジャッジ時間 | 1,937 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 4 WA * 18 |
ソースコード
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