結果
| 問題 |
No.1082 XORのXOR
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-19 21:33:23 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 2,000 ms |
| コード長 | 420 bytes |
| コンパイル時間 | 769 ms |
| コンパイル使用メモリ | 116,356 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 07:24:53 |
| 合計ジャッジ時間 | 1,879 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdlib;
void main() {
auto N = readln.chomp.to!int;
auto A = readln.split.map!(to!long).array;
long ans = 0;
foreach (i; 0..N) foreach (j; i+1..N) {
ans = max(ans, A[i] ^ A[j]);
}
ans.writeln;
}