結果

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

ソースコード

diff #

# -*- coding: utf-8 -*-
inp = list(raw_input())
N = float(inp.count("N"))
E = float(inp.count("E"))
W = float(inp.count("W"))
S = float(inp.count("S"))
print ((N - S) ** 2 + (E - W) ** 2) ** 0.5
0