結果

問題 No.113 宝探し
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-12-11 10:40:47
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 270 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 10,379 ms
コンパイル使用メモリ 431,312 KB
実行使用メモリ 49,908 KB
最終ジャッジ日時 2024-04-28 08:35:40
合計ジャッジ時間 18,808 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 254 ms
49,624 KB
testcase_01 AC 264 ms
49,692 KB
testcase_02 AC 263 ms
49,860 KB
testcase_03 AC 266 ms
49,880 KB
testcase_04 AC 258 ms
49,584 KB
testcase_05 AC 264 ms
49,820 KB
testcase_06 AC 263 ms
49,720 KB
testcase_07 AC 253 ms
49,584 KB
testcase_08 AC 258 ms
49,628 KB
testcase_09 AC 262 ms
49,592 KB
testcase_10 AC 259 ms
49,568 KB
testcase_11 AC 267 ms
49,848 KB
testcase_12 AC 264 ms
49,800 KB
testcase_13 AC 258 ms
49,664 KB
testcase_14 AC 262 ms
49,888 KB
testcase_15 AC 261 ms
49,640 KB
testcase_16 AC 259 ms
49,500 KB
testcase_17 AC 270 ms
49,804 KB
testcase_18 AC 261 ms
49,668 KB
testcase_19 AC 264 ms
49,908 KB
testcase_20 AC 255 ms
49,632 KB
testcase_21 AC 263 ms
49,592 KB
testcase_22 AC 263 ms
49,572 KB
testcase_23 AC 268 ms
49,488 KB
testcase_24 AC 264 ms
49,796 KB
testcase_25 AC 262 ms
49,796 KB
testcase_26 AC 260 ms
49,776 KB
権限があれば一括ダウンロードができます

ソースコード

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