結果
問題 | No.5017 Tool-assisted Shooting |
ユーザー | エセ賢者 |
提出日時 | 2023-08-03 12:39:23 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 478 ms / 2,000 ms |
コード長 | 1,048 bytes |
コンパイル時間 | 17,868 ms |
コンパイル使用メモリ | 425,224 KB |
実行使用メモリ | 71,076 KB |
スコア | 74,830 |
平均クエリ数 | 399.74 |
最終ジャッジ日時 | 2023-08-03 12:40:32 |
合計ジャッジ時間 | 58,930 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 392 ms
69,356 KB |
testcase_01 | AC | 457 ms
69,236 KB |
testcase_02 | AC | 344 ms
68,728 KB |
testcase_03 | AC | 362 ms
68,788 KB |
testcase_04 | AC | 376 ms
69,368 KB |
testcase_05 | AC | 377 ms
69,060 KB |
testcase_06 | AC | 358 ms
69,332 KB |
testcase_07 | AC | 381 ms
69,256 KB |
testcase_08 | AC | 369 ms
69,060 KB |
testcase_09 | AC | 400 ms
69,092 KB |
testcase_10 | AC | 382 ms
68,972 KB |
testcase_11 | AC | 371 ms
68,964 KB |
testcase_12 | AC | 374 ms
69,004 KB |
testcase_13 | AC | 355 ms
69,164 KB |
testcase_14 | AC | 362 ms
69,384 KB |
testcase_15 | AC | 371 ms
69,436 KB |
testcase_16 | AC | 338 ms
69,764 KB |
testcase_17 | AC | 451 ms
69,268 KB |
testcase_18 | AC | 460 ms
69,828 KB |
testcase_19 | AC | 343 ms
68,996 KB |
testcase_20 | AC | 367 ms
69,232 KB |
testcase_21 | AC | 376 ms
69,176 KB |
testcase_22 | AC | 385 ms
69,092 KB |
testcase_23 | AC | 337 ms
68,852 KB |
testcase_24 | AC | 390 ms
68,908 KB |
testcase_25 | AC | 364 ms
69,456 KB |
testcase_26 | AC | 421 ms
69,540 KB |
testcase_27 | AC | 456 ms
69,728 KB |
testcase_28 | AC | 397 ms
69,624 KB |
testcase_29 | AC | 432 ms
69,700 KB |
testcase_30 | AC | 381 ms
69,480 KB |
testcase_31 | AC | 341 ms
68,796 KB |
testcase_32 | AC | 373 ms
69,604 KB |
testcase_33 | AC | 360 ms
69,252 KB |
testcase_34 | AC | 442 ms
69,648 KB |
testcase_35 | AC | 366 ms
68,652 KB |
testcase_36 | AC | 397 ms
68,932 KB |
testcase_37 | AC | 354 ms
69,452 KB |
testcase_38 | AC | 365 ms
69,512 KB |
testcase_39 | AC | 451 ms
69,036 KB |
testcase_40 | AC | 382 ms
70,532 KB |
testcase_41 | AC | 334 ms
69,312 KB |
testcase_42 | AC | 413 ms
69,424 KB |
testcase_43 | AC | 430 ms
71,076 KB |
testcase_44 | AC | 331 ms
68,916 KB |
testcase_45 | AC | 354 ms
69,444 KB |
testcase_46 | AC | 474 ms
69,668 KB |
testcase_47 | AC | 371 ms
69,336 KB |
testcase_48 | AC | 449 ms
69,288 KB |
testcase_49 | AC | 476 ms
69,556 KB |
testcase_50 | AC | 358 ms
69,404 KB |
testcase_51 | AC | 450 ms
69,388 KB |
testcase_52 | AC | 478 ms
69,528 KB |
testcase_53 | AC | 379 ms
69,000 KB |
testcase_54 | AC | 355 ms
69,048 KB |
testcase_55 | AC | 423 ms
69,664 KB |
testcase_56 | AC | 342 ms
69,312 KB |
testcase_57 | AC | 441 ms
69,208 KB |
testcase_58 | AC | 417 ms
69,064 KB |
testcase_59 | AC | 333 ms
68,908 KB |
testcase_60 | AC | 422 ms
69,140 KB |
testcase_61 | AC | 442 ms
69,536 KB |
testcase_62 | AC | 445 ms
69,204 KB |
testcase_63 | AC | 380 ms
69,324 KB |
testcase_64 | AC | 335 ms
68,744 KB |
testcase_65 | AC | 463 ms
69,968 KB |
testcase_66 | AC | 368 ms
69,472 KB |
testcase_67 | AC | 343 ms
68,996 KB |
testcase_68 | AC | 381 ms
69,316 KB |
testcase_69 | AC | 392 ms
69,144 KB |
testcase_70 | AC | 330 ms
69,164 KB |
testcase_71 | AC | 374 ms
69,728 KB |
testcase_72 | AC | 360 ms
68,996 KB |
testcase_73 | AC | 437 ms
69,572 KB |
testcase_74 | AC | 367 ms
68,900 KB |
testcase_75 | AC | 369 ms
69,220 KB |
testcase_76 | AC | 360 ms
69,268 KB |
testcase_77 | AC | 346 ms
68,904 KB |
testcase_78 | AC | 386 ms
69,428 KB |
testcase_79 | AC | 393 ms
69,316 KB |
testcase_80 | AC | 338 ms
68,752 KB |
testcase_81 | AC | 386 ms
69,392 KB |
testcase_82 | AC | 368 ms
69,080 KB |
testcase_83 | AC | 340 ms
69,036 KB |
testcase_84 | AC | 360 ms
68,804 KB |
testcase_85 | AC | 338 ms
69,120 KB |
testcase_86 | AC | 369 ms
69,092 KB |
testcase_87 | AC | 380 ms
68,836 KB |
testcase_88 | AC | 340 ms
68,900 KB |
testcase_89 | AC | 360 ms
69,304 KB |
testcase_90 | AC | 390 ms
69,140 KB |
testcase_91 | AC | 350 ms
69,548 KB |
testcase_92 | AC | 448 ms
69,368 KB |
testcase_93 | AC | 368 ms
69,160 KB |
testcase_94 | AC | 354 ms
69,372 KB |
testcase_95 | AC | 438 ms
69,216 KB |
testcase_96 | AC | 444 ms
69,212 KB |
testcase_97 | AC | 334 ms
69,400 KB |
testcase_98 | AC | 343 ms
68,724 KB |
testcase_99 | AC | 379 ms
68,800 KB |
コンパイルメッセージ
Main.kt:10:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^ Main.kt:13:9: warning: variable 'own' is never used val own = Own(12, 0) ^
ソースコード
private fun next() = readLine()!! private fun nextInt() = next().toInt() private fun nextLong() = next().toLong() private fun nextDouble() = next().toDouble() private fun nextList() = next().split(" ") private fun nextIntList() = next().split(" ").map { it.toInt() }.toIntArray() private fun nextLongList() = next().split(" ").map { it.toLong() }.toLongArray() private fun nextDoubleList() = next().split(" ").map { it.toDouble() }.toDoubleArray() fun main(args: Array<String>) { var turn = 0 val enemyList = mutableListOf<Enemy>() val own = Own(12, 0) while (turn < 1000) { val n = nextInt() if (n == -1) { return } for (i in 0 until n) { val hpx = nextIntList() enemyList.add(Enemy(hpx[2], 59 + turn, hpx[0], hpx[1])) } println("S") turn++ } } class Enemy(var x: Int, var y: Int, var h: Int, var p: Int) { fun hit(damage: Int): Boolean { h -= damage return h >= 0 } } class Own(var x: Int, var y: Int)