結果

問題 No.113 宝探し
ユーザー pluto77
提出日時 2016-02-10 10:13:15
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 163 bytes
コンパイル時間 629 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-11-16 21:08:30
合計ジャッジ時間 1,906 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_113
import math

s=[]
s=raw_input()

n=s.count('N')
e=s.count('E')
w=s.count('W')
s=s.count('S')

res=math.sqrt((n-s)**2+(e-w)**2)
print res
0