結果
問題 |
No.378 名声値を稼ごう
|
ユーザー |
![]() |
提出日時 | 2023-09-24 19:01:02 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 128 bytes |
コンパイル時間 | 4,751 ms |
コンパイル使用メモリ | 65,932 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-17 19:45:53 |
合計ジャッジ時間 | 5,171 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 |
ソースコード
import strutils let n = parseInt readLine stdin var x = n sum = 0 while x > 0: sum.inc x x = x div 2 echo 2 * n - sum