結果
問題 | No.63 ポッキーゲーム |
ユーザー | javy |
提出日時 | 2015-11-02 23:23:18 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 362 ms / 5,000 ms |
コード長 | 713 bytes |
コンパイル時間 | 11,217 ms |
コンパイル使用メモリ | 434,936 KB |
実行使用メモリ | 51,860 KB |
最終ジャッジ日時 | 2024-04-30 03:09:53 |
合計ジャッジ時間 | 19,822 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 320 ms
51,776 KB |
testcase_01 | AC | 323 ms
51,764 KB |
testcase_02 | AC | 315 ms
51,660 KB |
testcase_03 | AC | 316 ms
51,860 KB |
testcase_04 | AC | 324 ms
51,628 KB |
testcase_05 | AC | 312 ms
51,760 KB |
testcase_06 | AC | 313 ms
51,676 KB |
testcase_07 | AC | 362 ms
51,624 KB |
testcase_08 | AC | 311 ms
51,796 KB |
testcase_09 | AC | 328 ms
51,656 KB |
testcase_10 | AC | 326 ms
51,804 KB |
testcase_11 | AC | 315 ms
51,584 KB |
testcase_12 | AC | 317 ms
51,540 KB |
testcase_13 | AC | 316 ms
51,676 KB |
testcase_14 | AC | 313 ms
51,640 KB |
testcase_15 | AC | 316 ms
51,720 KB |
testcase_16 | AC | 320 ms
51,536 KB |
testcase_17 | AC | 317 ms
51,624 KB |
testcase_18 | AC | 314 ms
51,544 KB |
testcase_19 | AC | 317 ms
51,752 KB |
testcase_20 | AC | 320 ms
51,596 KB |
testcase_21 | AC | 317 ms
51,640 KB |
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
package Yukicoder /** * Created by hichikawa on 2015/11/02. */ fun main(args: Array<String>) { fun readLineLongArray() : List<Long> { val str = readLine() as String val arrStr = str.split(" ") val ret = arrStr.map { it.toLong() } return ret } fun readLineLong() : Long { val str = readLine() as String return str.toLong() } val inputNum = readLineLongArray() val pokeyLen = inputNum[0] val eatLen = inputNum[1] val eatLenTwo = eatLen * 2 if (pokeyLen / eatLenTwo * eatLenTwo - pokeyLen == 0.toLong()) { println(pokeyLen / eatLenTwo * eatLen - eatLen) } else { println(pokeyLen / eatLenTwo * eatLen) } }