結果
| 問題 |
No.113 宝探し
|
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-24 16:59:26 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 5,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-11-16 20:58:56 |
| 合計ジャッジ時間 | 1,267 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
import math
S = raw_input()
y = 0;x = 0
for d in S:
if (d == 'N'):
y += 1
if (d == 'E'):
x += 1
if (d == 'W'):
x -= 1
if (d == 'S'):
y -= 1
print ("%.20f") % (math.sqrt(x ** 2 + y ** 2))
togatoga