結果

問題 No.381 名声値を稼ごう Extra
ユーザー keymoonkeymoon
提出日時 2021-04-03 00:25:01
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 370 bytes
コンパイル時間 4,114 ms
コンパイル使用メモリ 103,512 KB
実行使用メモリ 59,188 KB
最終ジャッジ日時 2023-08-25 14:41:41
合計ジャッジ時間 11,828 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,000 KB
testcase_01 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Numerics;
public static class P
{
    public static void Main()
    {
        string ns = Console.ReadLine();
        BigInteger n = 0;
        foreach (var c in ns) n = n * 10 + c - '0';
        BigInteger res = n * 2;
        while (n > 0)
        {
            res -= n;
            n /= 2;
        }
        Console.WriteLine(res);
    }
}
0