結果
問題 | No.305 鍵(2) |
ユーザー |
|
提出日時 | 2015-11-27 22:58:36 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 382 ms / 2,000 ms |
コード長 | 904 bytes |
コンパイル時間 | 12,743 ms |
コンパイル使用メモリ | 440,008 KB |
実行使用メモリ | 73,828 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2024-07-16 21:50:53 |
合計ジャッジ時間 | 18,867 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
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)returnfor (i in 0..9) {for (j in 1..9) {arrInt[i] = jfor (item in arrInt) {print(item)}println()val intCountTmp = (readLine() as String).split(" ")[0].toInt()if (intCountTmp == 10)returnif (intCountTmp != intCount) {if (intCountTmp > intCount) {intCount = intCountTmpbreak} else {arrInt[i] = 0break}}}}}