結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-20 22:28:59 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 1,558 ms |
| コンパイル使用メモリ | 116,744 KB |
| 実行使用メモリ | 20,680 KB |
| 最終ジャッジ日時 | 2026-03-05 08:04:51 |
| 合計ジャッジ時間 | 76,389 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 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);
}