結果

問題 No.1198 お菓子配り-1
ユーザー yudedakoyudedako
提出日時 2020-08-29 14:01:53
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 300 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 10,127 ms
コンパイル使用メモリ 428,300 KB
実行使用メモリ 54,864 KB
最終ジャッジ日時 2024-04-28 01:36:09
合計ジャッジ時間 16,183 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 300 ms
51,312 KB
testcase_01 AC 264 ms
54,864 KB
testcase_02 AC 267 ms
51,096 KB
testcase_03 AC 264 ms
51,264 KB
testcase_04 AC 273 ms
51,148 KB
testcase_05 AC 271 ms
51,232 KB
testcase_06 AC 268 ms
51,100 KB
testcase_07 AC 275 ms
51,220 KB
testcase_08 AC 267 ms
51,096 KB
testcase_09 AC 279 ms
51,212 KB
testcase_10 AC 277 ms
51,236 KB
testcase_11 AC 276 ms
51,104 KB
testcase_12 AC 275 ms
51,352 KB
testcase_13 AC 272 ms
51,060 KB
testcase_14 AC 263 ms
51,096 KB
testcase_15 AC 261 ms
51,368 KB
testcase_16 AC 262 ms
51,376 KB
testcase_17 AC 265 ms
51,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


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