結果

問題 No.113 宝探し
ユーザー vanillavanilla
提出日時 2015-01-12 23:45:55
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 988 ms
コンパイル使用メモリ 6,512 KB
実行使用メモリ 6,136 KB
最終ジャッジ日時 2023-09-04 05:07:39
合計ジャッジ時間 2,901 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 12 ms
5,968 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 11 ms
6,092 KB
testcase_06 AC 11 ms
6,076 KB
testcase_07 AC 11 ms
6,072 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 12 ms
5,948 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 12 ms
5,884 KB
testcase_18 AC 12 ms
5,968 KB
testcase_19 AC 12 ms
6,016 KB
testcase_20 AC 11 ms
6,036 KB
testcase_21 AC 11 ms
5,952 KB
testcase_22 AC 11 ms
5,964 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
# No.113 宝探し

import math

s = raw_input()

N = s.count('N')
E = s.count('E')
W = s.count('W')
S = s.count('S')

result1 = N ** 2 + E ** 2 + W ** 2 + S ** 2

result = math.sqrt(result1)

print result
0