結果

問題 No.354 メルセンヌ素数
ユーザー nak2yoshi
提出日時 2016-04-03 17:02:31
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 1,770 ms
コンパイル使用メモリ 143,840 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-12 03:21:07
合計ジャッジ時間 2,572 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.string,
       std.conv,
       std.range,
       std.math,
       std.bigint,
       std.algorithm,
       core.bitop;

void main()
{
    auto P = readln.strip.to!int;

    "%s".writefln( popcnt(2^^P - 1) );
}
0