結果
問題 |
No.378 名声値を稼ごう
|
ユーザー |
![]() |
提出日時 | 2019-08-28 12:00:26 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-17 16:14:45 |
合計ジャッジ時間 | 3,684 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 TLE * 1 |
ソースコード
#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); }