結果
| 問題 |
No.381 名声値を稼ごう Extra
|
| コンテスト | |
| ユーザー |
keymoon
|
| 提出日時 | 2021-04-03 00:25:47 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 1,225 ms |
| コンパイル使用メモリ | 102,784 KB |
| 実行使用メモリ | 24,308 KB |
| 最終ジャッジ日時 | 2024-12-23 23:13:13 |
| 合計ジャッジ時間 | 10,783 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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 >>= 1;
}
Console.WriteLine(res);
}
}
keymoon