結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
|
提出日時 | 2016-09-12 14:27:52 |
言語 | D (dmd 2.109.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 837 ms |
コンパイル使用メモリ | 120,064 KB |
実行使用メモリ | 14,008 KB |
最終ジャッジ日時 | 2024-06-12 04:19:15 |
合計ジャッジ時間 | 7,354 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 3 WA * 2 TLE * 1 -- * 12 |
ソースコード
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!(to!long).array; bool[long] memo; memo[0L] = true; foreach (a; ai) foreach (i; memo.byKey) memo[a ^ i] = true; writeln(memo.length); }