結果

問題 No.272 NOT回路
ユーザー komkomhkomkomh
提出日時 2019-06-19 16:26:30
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 272 ms / 1,000 ms
コード長 147 bytes
コンパイル時間 10,675 ms
コンパイル使用メモリ 406,920 KB
実行使用メモリ 50,304 KB
最終ジャッジ日時 2023-08-13 02:36:43
合計ジャッジ時間 15,561 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 264 ms
50,176 KB
testcase_01 AC 266 ms
50,168 KB
testcase_02 AC 265 ms
50,124 KB
testcase_03 AC 262 ms
50,108 KB
testcase_04 AC 264 ms
50,116 KB
testcase_05 AC 263 ms
50,160 KB
testcase_06 AC 272 ms
50,036 KB
testcase_07 AC 267 ms
50,048 KB
testcase_08 AC 262 ms
50,140 KB
testcase_09 AC 272 ms
50,092 KB
testcase_10 AC 256 ms
50,304 KB
testcase_11 AC 256 ms
50,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

fun main() {
    val X = readLine()!!.toInt()
    val ans = when (X) {
        0 -> 1
        else -> 0
    }
    println(ans)
}
0