結果
問題 |
No.98 円を描こう
|
ユーザー |
|
提出日時 | 2018-04-08 15:19:08 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 305 ms / 5,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 11,158 ms |
コンパイル使用メモリ | 430,472 KB |
実行使用メモリ | 51,100 KB |
最終ジャッジ日時 | 2024-11-20 15:46:41 |
合計ジャッジ時間 | 13,267 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
package net.ipipip0129.kotlin.yukicoder fun main(args: Array<String>) { val data = readLine()!!.split(" ") val pos = Pos(data[0].toDouble(), data[1].toDouble()) val dis = Math.sqrt(Math.pow(pos.x, 2.0) + Math.pow(pos.y, 2.0)) println((dis * 2).toLong() + 1) } private class Pos(val x: Double, val y: Double)