結果

問題 No.1934 Four Fruits
ユーザー koboshikoboshi
提出日時 2022-05-13 21:23:06
言語 Kotlin
(1.6.10)
結果
AC  
実行時間 217 ms / 2,000 ms
コード長 863 bytes
コンパイル時間 10,470 ms
使用メモリ 44,400 KB
最終ジャッジ日時 2023-02-21 12:59:26
合計ジャッジ時間 13,039 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 213 ms
44,384 KB
testcase_01 AC 214 ms
44,400 KB
testcase_02 AC 212 ms
44,336 KB
testcase_03 AC 215 ms
44,304 KB
testcase_04 AC 208 ms
44,356 KB
testcase_05 AC 209 ms
44,116 KB
testcase_06 AC 217 ms
44,284 KB
testcase_07 AC 217 ms
44,348 KB
testcase_08 AC 217 ms
44,388 KB
testcase_09 AC 211 ms
44,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter
import java.util.*
import kotlin.math.*

fun PrintWriter.solve() {
    val a = nextInt()
    val b = nextInt()
    val c = nextInt()
    println(a xor b xor c)
}

fun main() {
    Thread(null, {
        val writer = PrintWriter(System.out, false)
        writer.solve()
        writer.flush()
    }, "solve", abs(1L.shl(26)))
        .apply { setUncaughtExceptionHandler { _, e -> e.printStackTrace(); kotlin.system.exitProcess(1) } }
        .apply { start() }.join()
}

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

fun next(): String {
    while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())
    return st.nextToken()
}

fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextLine() = br.readLine()
fun nextDouble() = next().toDouble()
// endregion
0