結果
問題 | No.5017 Tool-assisted Shooting |
ユーザー | エセ賢者 |
提出日時 | 2023-07-16 14:17:03 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 422 ms / 2,000 ms |
コード長 | 919 bytes |
コンパイル時間 | 17,737 ms |
コンパイル使用メモリ | 419,184 KB |
実行使用メモリ | 69,376 KB |
スコア | 74,830 |
平均クエリ数 | 399.74 |
最終ジャッジ日時 | 2023-07-16 14:18:04 |
合計ジャッジ時間 | 55,637 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 312 ms
66,176 KB |
testcase_01 | AC | 419 ms
68,716 KB |
testcase_02 | AC | 298 ms
66,048 KB |
testcase_03 | AC | 296 ms
66,436 KB |
testcase_04 | AC | 346 ms
66,676 KB |
testcase_05 | AC | 325 ms
66,620 KB |
testcase_06 | AC | 293 ms
66,140 KB |
testcase_07 | AC | 366 ms
66,808 KB |
testcase_08 | AC | 301 ms
66,104 KB |
testcase_09 | AC | 320 ms
66,232 KB |
testcase_10 | AC | 337 ms
66,944 KB |
testcase_11 | AC | 330 ms
67,288 KB |
testcase_12 | AC | 298 ms
66,320 KB |
testcase_13 | AC | 322 ms
66,456 KB |
testcase_14 | AC | 345 ms
66,524 KB |
testcase_15 | AC | 319 ms
66,208 KB |
testcase_16 | AC | 318 ms
66,856 KB |
testcase_17 | AC | 403 ms
68,524 KB |
testcase_18 | AC | 399 ms
68,476 KB |
testcase_19 | AC | 307 ms
66,356 KB |
testcase_20 | AC | 330 ms
66,368 KB |
testcase_21 | AC | 355 ms
66,516 KB |
testcase_22 | AC | 342 ms
66,472 KB |
testcase_23 | AC | 299 ms
66,456 KB |
testcase_24 | AC | 353 ms
66,796 KB |
testcase_25 | AC | 325 ms
66,232 KB |
testcase_26 | AC | 358 ms
66,532 KB |
testcase_27 | AC | 422 ms
68,928 KB |
testcase_28 | AC | 322 ms
66,228 KB |
testcase_29 | AC | 319 ms
66,412 KB |
testcase_30 | AC | 335 ms
66,620 KB |
testcase_31 | AC | 315 ms
66,624 KB |
testcase_32 | AC | 309 ms
66,400 KB |
testcase_33 | AC | 306 ms
66,828 KB |
testcase_34 | AC | 415 ms
68,528 KB |
testcase_35 | AC | 295 ms
65,952 KB |
testcase_36 | AC | 351 ms
66,384 KB |
testcase_37 | AC | 338 ms
66,692 KB |
testcase_38 | AC | 296 ms
66,368 KB |
testcase_39 | AC | 383 ms
68,832 KB |
testcase_40 | AC | 322 ms
66,588 KB |
testcase_41 | AC | 328 ms
66,048 KB |
testcase_42 | AC | 353 ms
66,452 KB |
testcase_43 | AC | 366 ms
66,392 KB |
testcase_44 | AC | 320 ms
66,480 KB |
testcase_45 | AC | 310 ms
66,628 KB |
testcase_46 | AC | 417 ms
69,116 KB |
testcase_47 | AC | 344 ms
66,652 KB |
testcase_48 | AC | 388 ms
69,080 KB |
testcase_49 | AC | 399 ms
69,376 KB |
testcase_50 | AC | 355 ms
66,496 KB |
testcase_51 | AC | 406 ms
68,764 KB |
testcase_52 | AC | 392 ms
68,788 KB |
testcase_53 | AC | 351 ms
66,240 KB |
testcase_54 | AC | 309 ms
66,452 KB |
testcase_55 | AC | 355 ms
66,468 KB |
testcase_56 | AC | 311 ms
66,480 KB |
testcase_57 | AC | 390 ms
69,140 KB |
testcase_58 | AC | 369 ms
68,292 KB |
testcase_59 | AC | 315 ms
66,244 KB |
testcase_60 | AC | 362 ms
66,344 KB |
testcase_61 | AC | 397 ms
68,556 KB |
testcase_62 | AC | 398 ms
68,552 KB |
testcase_63 | AC | 313 ms
66,276 KB |
testcase_64 | AC | 295 ms
66,096 KB |
testcase_65 | AC | 396 ms
68,504 KB |
testcase_66 | AC | 334 ms
66,316 KB |
testcase_67 | AC | 301 ms
66,676 KB |
testcase_68 | AC | 334 ms
66,588 KB |
testcase_69 | AC | 339 ms
66,844 KB |
testcase_70 | AC | 298 ms
66,668 KB |
testcase_71 | AC | 335 ms
66,624 KB |
testcase_72 | AC | 307 ms
66,500 KB |
testcase_73 | AC | 419 ms
68,804 KB |
testcase_74 | AC | 316 ms
66,716 KB |
testcase_75 | AC | 314 ms
66,452 KB |
testcase_76 | AC | 337 ms
66,584 KB |
testcase_77 | AC | 310 ms
66,332 KB |
testcase_78 | AC | 325 ms
66,708 KB |
testcase_79 | AC | 369 ms
66,172 KB |
testcase_80 | AC | 318 ms
66,664 KB |
testcase_81 | AC | 327 ms
66,944 KB |
testcase_82 | AC | 311 ms
66,444 KB |
testcase_83 | AC | 339 ms
66,048 KB |
testcase_84 | AC | 304 ms
66,140 KB |
testcase_85 | AC | 310 ms
66,712 KB |
testcase_86 | AC | 347 ms
66,096 KB |
testcase_87 | AC | 296 ms
66,220 KB |
testcase_88 | AC | 293 ms
66,692 KB |
testcase_89 | AC | 322 ms
66,928 KB |
testcase_90 | AC | 341 ms
66,744 KB |
testcase_91 | AC | 299 ms
66,728 KB |
testcase_92 | AC | 383 ms
69,144 KB |
testcase_93 | AC | 335 ms
66,744 KB |
testcase_94 | AC | 323 ms
66,536 KB |
testcase_95 | AC | 384 ms
68,636 KB |
testcase_96 | AC | 395 ms
66,584 KB |
testcase_97 | AC | 294 ms
66,176 KB |
testcase_98 | AC | 292 ms
66,912 KB |
testcase_99 | AC | 315 ms
66,464 KB |
コンパイルメッセージ
Main.kt:10:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^ Main.kt:22:27: warning: 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead. h[i] = hpx[0].toInt() ^ Main.kt:23:27: warning: 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead. p[i] = hpx[1].toInt() ^ Main.kt:24:27: warning: 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead. x[i] = hpx[2].toInt() ^
ソースコード
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 while (turn < 1000) { val n = nextInt() if (n == -1) { return } val h = IntArray(n) { 0 } val p = IntArray(n) { 0 } val x = IntArray(n) { 0 } for (i in 0 until n) { val hpx = next() h[i] = hpx[0].toInt() p[i] = hpx[1].toInt() x[i] = hpx[2].toInt() } println("S") turn++ } }