結果
問題 | No.98 円を描こう |
ユーザー | javy |
提出日時 | 2015-11-03 14:36:08 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 282 ms / 5,000 ms |
コード長 | 635 bytes |
コンパイル時間 | 12,244 ms |
コンパイル使用メモリ | 429,180 KB |
実行使用メモリ | 51,764 KB |
最終ジャッジ日時 | 2024-04-30 05:18:41 |
合計ジャッジ時間 | 14,813 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 258 ms
51,584 KB |
testcase_01 | AC | 282 ms
51,664 KB |
testcase_02 | AC | 259 ms
51,736 KB |
testcase_03 | AC | 260 ms
51,764 KB |
testcase_04 | AC | 261 ms
51,508 KB |
testcase_05 | AC | 262 ms
51,640 KB |
testcase_06 | AC | 264 ms
51,588 KB |
testcase_07 | AC | 259 ms
51,564 KB |
testcase_08 | AC | 255 ms
51,480 KB |
testcase_09 | AC | 264 ms
51,504 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 arrInt = readLineLongArray() val lenlen = arrInt[0] * arrInt[0] + arrInt[1] * arrInt[1] for (i in 1..(Integer.MAX_VALUE)) { if (lenlen < (i / 2.0) * (i / 2.0)) { println(i) break } } }