結果

問題 No.593 4進FizzBuzz
ユーザー 💕💖💞💕💖💞
提出日時 2018-03-07 22:04:02
言語 Kotlin
(1.9.23)
結果
RE  
実行時間 -
コード長 250 bytes
コンパイル時間 10,523 ms
コンパイル使用メモリ 431,408 KB
実行使用メモリ 75,368 KB
最終ジャッジ日時 2024-04-30 17:15:44
合計ジャッジ時間 27,845 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 292 ms
54,328 KB
testcase_01 AC 293 ms
54,148 KB
testcase_02 AC 295 ms
54,232 KB
testcase_03 AC 292 ms
54,304 KB
testcase_04 AC 292 ms
54,280 KB
testcase_05 AC 296 ms
54,220 KB
testcase_06 AC 295 ms
54,248 KB
testcase_07 AC 295 ms
54,288 KB
testcase_08 AC 298 ms
54,208 KB
testcase_09 AC 297 ms
54,284 KB
testcase_10 AC 295 ms
54,288 KB
testcase_11 AC 298 ms
54,256 KB
testcase_12 AC 298 ms
54,188 KB
testcase_13 AC 298 ms
54,364 KB
testcase_14 AC 297 ms
54,272 KB
testcase_15 AC 294 ms
54,436 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val fours = readLine()!!
  val digit = fours.toInt(4)
  //println(digit)
  when {
    digit % 15 == 0 -> "FizzBuzz"
    digit % 3 == 0 -> "Fizz"
    digit % 5 == 0 -> "Buzz"
    else -> fours
  }.let { println(it) }
}
0