結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-12 14:25:43 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 456 bytes |
| 記録 | |
| コンパイル時間 | 1,140 ms |
| コンパイル使用メモリ | 108,504 KB |
| 実行使用メモリ | 21,128 KB |
| 最終ジャッジ日時 | 2026-03-05 07:35:43 |
| 合計ジャッジ時間 | 254,617 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 3 TLE * 9 |
ソースコード
import std.algorithm, std.array, std.container, std.range, std.bitmanip;
import std.numeric, std.math, std.bigint, std.random, core.bitop;
import std.string, std.regex, std.conv, std.stdio, std.typecons;
void main()
{
auto n = readln.chomp.to!size_t;
auto ai = readln.split.map!(a => BigInt(a)).array;
bool[BigInt] memo;
memo[BigInt(0)] = true;
foreach (a; ai)
foreach (i; memo.byKey)
memo[a ^ i] = true;
writeln(memo.length);
}