結果
| 問題 |
No.420 mod2漸化式
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-20 22:28:59 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| コンパイル時間 | 1,662 ms |
| コンパイル使用メモリ | 138,088 KB |
| 実行使用メモリ | 15,928 KB |
| 最終ジャッジ日時 | 2024-06-12 04:40:55 |
| 合計ジャッジ時間 | 6,108 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | -- * 35 |
ソースコード
import std.stdio;
import core.bitop;
void main() {
uint x; readf("%s", &x);
const uint N = 2<<31 - 1;
uint c = 0;
ulong sum = 0;
for (uint i = 0; i <= N; i++) {
if (x != i.popcnt) { continue; }
c++;
sum += i;
}
writef("%d %d\n", c, sum);
}