結果

問題 No.604 誕生日のお小遣い
ユーザー 💕💖💞💕💖💞
提出日時 2018-02-16 02:46:41
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 11,310 ms
コンパイル使用メモリ 435,376 KB
実行使用メモリ 57,072 KB
最終ジャッジ日時 2024-04-30 16:55:25
合計ジャッジ時間 20,368 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 318 ms
56,788 KB
testcase_02 AC 320 ms
56,788 KB
testcase_03 AC 320 ms
57,004 KB
testcase_04 AC 319 ms
56,964 KB
testcase_05 AC 324 ms
56,948 KB
testcase_06 AC 321 ms
56,804 KB
testcase_07 AC 323 ms
56,896 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 322 ms
56,824 KB
testcase_11 AC 322 ms
56,860 KB
testcase_12 AC 323 ms
56,892 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 318 ms
56,848 KB
testcase_16 WA -
testcase_17 AC 318 ms
56,908 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val (cycle, income, obj) = readLine()!!.split(" ").map { it.toLong() }

  val batch = income + cycle - 1

  val target = obj%batch
  println( cycle*(obj/batch) + target ) 
}
0