結果

問題 No.378 名声値を稼ごう
ユーザー funakoshifunakoshi
提出日時 2019-08-28 12:00:26
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 405 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 29,952 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-28 20:38:31
合計ジャッジ時間 3,734 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
10,752 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    long long int renown,normal=0,max,dif,val;
    scanf("%lld",&renown);
    max=renown*2;
    while(1)
    {
        normal+=renown;
        renown/=2;
        if(renown==1)
        {
            normal++;
            break;
        }
    }
    dif=max-normal;
    printf("%lld",dif);


}
0