結果
| 問題 | No.1674 Introduction to XOR |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-17 02:10:57 |
| 言語 | Kotlin (2.4.10 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 197 ms / 1,000 ms |
| + 588µs | |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 7,908 ms |
| コンパイル使用メモリ | 506,168 KB |
| 実行使用メモリ | 54,456 KB |
| 最終ジャッジ日時 | 2026-08-29 19:07:52 |
| 合計ジャッジ時間 | 14,052 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.math.BigInteger
fun main() {
readLine()
val a = readLine()!!.split(" ").map { it.toBigInteger() }
for (i in 0..60) {
val x = BigInteger.TWO.pow(i)
if (a.all { (it + x) == it.xor(x) }) {
println(x)
return
}
}
}