結果

問題 No.1432 Not Xor
ユーザー バカらっくバカらっく
提出日時 2022-02-14 10:33:52
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 302 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 12,210 ms
コンパイル使用メモリ 414,124 KB
実行使用メモリ 53,072 KB
最終ジャッジ日時 2023-09-11 16:01:41
合計ジャッジ時間 15,840 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
52,836 KB
testcase_01 AC 288 ms
53,072 KB
testcase_02 AC 285 ms
52,724 KB
testcase_03 AC 289 ms
52,804 KB
testcase_04 AC 302 ms
52,976 KB
testcase_05 AC 297 ms
52,656 KB
testcase_06 AC 294 ms
52,876 KB
testcase_07 AC 293 ms
52,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val (a,b) = readLine()!!.split(" ").map { it.toLong() }
    val ans = (a or b) + (a and b)
    println(ans)
}
0