結果

問題 No.1198 お菓子配り-1
ユーザー yudedakoyudedako
提出日時 2020-08-29 14:00:46
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 11,061 ms
コンパイル使用メモリ 420,372 KB
実行使用メモリ 51,244 KB
最終ジャッジ日時 2024-04-26 17:07:21
合計ジャッジ時間 18,096 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 293 ms
51,164 KB
testcase_01 AC 291 ms
51,244 KB
testcase_02 AC 287 ms
51,088 KB
testcase_03 AC 299 ms
51,048 KB
testcase_04 AC 300 ms
51,096 KB
testcase_05 AC 291 ms
51,032 KB
testcase_06 AC 294 ms
51,008 KB
testcase_07 AC 291 ms
50,956 KB
testcase_08 AC 291 ms
51,108 KB
testcase_09 AC 293 ms
50,960 KB
testcase_10 AC 296 ms
51,000 KB
testcase_11 AC 295 ms
50,912 KB
testcase_12 AC 288 ms
51,128 KB
testcase_13 AC 296 ms
50,916 KB
testcase_14 AC 288 ms
51,096 KB
testcase_15 AC 291 ms
51,124 KB
testcase_16 AC 295 ms
51,096 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #


fun main() {
    val str = readLine()!!
    val n = str.takeLast(2).toInt()
    println(if (str == "1" || n % 4 == 2) -1 else 1)
}
0