結果

問題 No.378 名声値を稼ごう
ユーザー abL8ZLsTbF
提出日時 2016-06-21 03:23:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-11 18:14:36
合計ジャッジ時間 843 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def normal(n):
	if n == 0:
		return 0
	return n + normal(math.floor(n / 2))

n = int(input())
print(abs(n * 2 - normal(n)))
0