結果

問題 No.381 名声値を稼ごう Extra
ユーザー anago-pie
提出日時 2025-02-04 16:59:21
言語 JavaScript
(node v23.5.0)
結果
TLE  
実行時間 -
コード長 272 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 105,488 KB
最終ジャッジ日時 2025-02-04 16:59:35
合計ジャッジ時間 10,362 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(INPUT){
  const input=INPUT.split("\n");
  let N=BigInt(input[0]);
  const max=N*2n;
  let normal=0n;
  while(N>0n){
    normal+=N;
    N/=2n;
  }
  console.log(((max-normal)%1004535809n).toString());
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0