結果
| 問題 | No.378 名声値を稼ごう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-02 12:29:30 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 180 bytes |
| 記録 | |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 77,076 KB |
| 最終ジャッジ日時 | 2025-12-03 20:54:03 |
|
ジャッジサーバーID (参考情報) |
judge2 / 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)