結果

問題 No.589 Counting Even
ユーザー dptbldptbl
提出日時 2017-11-04 00:36:19
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 878 ms
コンパイル使用メモリ 106,128 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 22:19:29
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

import core.bitop;
import std.algorithm;
import std.array;
import std.ascii;
import std.container;
import std.conv;
import std.format;
import std.math;
import std.random;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
  long n = readln.chomp.to!long;
  writeln = n + 1 - (1L << n.popcnt);
}
0