結果

問題 No.272 NOT回路
ユーザー komkomhkomkomh
提出日時 2019-06-19 16:26:30
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 254 ms / 1,000 ms
コード長 147 bytes
コンパイル時間 8,142 ms
コンパイル使用メモリ 425,872 KB
実行使用メモリ 54,436 KB
最終ジャッジ日時 2024-04-30 21:04:02
合計ジャッジ時間 12,000 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 245 ms
54,288 KB
testcase_01 AC 247 ms
54,192 KB
testcase_02 AC 241 ms
54,252 KB
testcase_03 AC 254 ms
54,140 KB
testcase_04 AC 241 ms
54,128 KB
testcase_05 AC 239 ms
54,260 KB
testcase_06 AC 242 ms
54,252 KB
testcase_07 AC 245 ms
54,228 KB
testcase_08 AC 249 ms
54,084 KB
testcase_09 AC 243 ms
54,436 KB
testcase_10 AC 236 ms
54,132 KB
testcase_11 AC 240 ms
54,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

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