結果

問題 No.113 宝探し
ユーザー KisaragiEffective
提出日時 2019-12-11 10:40:47
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 291 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 14,170 ms
コンパイル使用メモリ 432,832 KB
実行使用メモリ 52,684 KB
最終ジャッジ日時 2024-11-16 22:23:15
合計ジャッジ時間 20,086 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val k = readLine()!!.toCharArray()
    println(kotlin.math.hypot((k.count { it == 'N' } - k.count() { it == 'S' }).toDouble(),
        (k.count { it == 'W' } - k.count { it == 'E' }).toDouble()))
}
0