結果
問題 | No.305 鍵(2) |
ユーザー | javy |
提出日時 | 2015-11-27 22:58:36 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 355 ms / 2,000 ms |
コード長 | 904 bytes |
コンパイル時間 | 16,168 ms |
コンパイル使用メモリ | 418,896 KB |
実行使用メモリ | 69,400 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2023-09-23 22:05:00 |
合計ジャッジ時間 | 20,531 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 312 ms
68,508 KB |
testcase_01 | AC | 317 ms
68,324 KB |
testcase_02 | AC | 298 ms
68,484 KB |
testcase_03 | AC | 326 ms
68,316 KB |
testcase_04 | AC | 322 ms
68,884 KB |
testcase_05 | AC | 355 ms
68,964 KB |
testcase_06 | AC | 279 ms
68,568 KB |
testcase_07 | AC | 322 ms
68,396 KB |
testcase_08 | AC | 331 ms
68,464 KB |
testcase_09 | AC | 337 ms
69,400 KB |
testcase_10 | AC | 311 ms
68,320 KB |
testcase_11 | AC | 325 ms
68,776 KB |
testcase_12 | AC | 338 ms
68,540 KB |
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
package Yukicoder /** * Created by hichikawa on 2015/11/12. */ fun main(args: Array<String>) { var arrInt = Array<Int>(10, {0}) for (item in arrInt) { print(item) } println() var intCount = (readLine() as String).split(" ")[0].toInt() if (intCount == 10) return for (i in 0..9) { for (j in 1..9) { arrInt[i] = j for (item in arrInt) { print(item) } println() val intCountTmp = (readLine() as String).split(" ")[0].toInt() if (intCountTmp == 10) return if (intCountTmp != intCount) { if (intCountTmp > intCount) { intCount = intCountTmp break } else { arrInt[i] = 0 break } } } } }