結果
| 問題 | No.113 宝探し |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-12 23:45:55 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 77,612 KB |
| 最終ジャッジ日時 | 2025-12-03 13:28:36 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 8 WA * 15 |
ソースコード
# -*- 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