結果

問題 No.378 名声値を稼ごう
ユーザー AREIDO2AREIDO2
提出日時 2016-08-23 06:17:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 558 ms
コンパイル使用メモリ 6,640 KB
実行使用メモリ 6,108 KB
最終ジャッジ日時 2023-09-12 01:09:59
合計ジャッジ時間 1,264 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,940 KB
testcase_01 AC 11 ms
5,856 KB
testcase_02 AC 11 ms
6,032 KB
testcase_03 AC 12 ms
6,108 KB
testcase_04 AC 11 ms
5,924 KB
testcase_05 AC 11 ms
5,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

N = int(raw_input())
sum1 = N
calc1 = N
sum2 = N * 2
while calc1 != 0:
     calc1 = int(calc1 / 2)
     sum1 += calc1

result = sum2 - sum1

print result
0