結果
| 問題 |
No.378 名声値を稼ごう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-02 12:29:30 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 180 bytes |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 02:27:00 |
| 合計ジャッジ時間 | 565 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 1 |
ソースコード
#coding: utf-8 #yuki_378 n=int(raw_input()) def sgs(x): res=x i=x while True: res+=i/2 if i==0: break i/=2 return res y=n*2 if n==1: print 0 else: print y-sgs(n)