結果
| 問題 | No.113 宝探し |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-10 10:13:15 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 5,000 ms |
| コード長 | 163 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 76,724 KB |
| 最終ジャッジ日時 | 2025-12-03 19:15:42 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
#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