結果
| 問題 |
No.1082 XORのXOR
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-17 00:10:31 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 20,347 ms |
| コンパイル使用メモリ | 396,764 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-16 06:24:12 |
| 合計ジャッジ時間 | 14,543 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
fn main() {
let mut xx = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
let xx: Vec<u64> = xx.split_whitespace().skip(1).flat_map(str::parse).collect();
let mut max = 0;
for i in 0..xx.len() {
for j in 0..i {
max = max.max(xx[i] ^ xx[j]);
}
}
println!("{max}");
}
cra77756176