結果
| 問題 |
No.113 宝探し
|
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 07:38:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 5,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-26 03:30:24 |
| 合計ジャッジ時間 | 2,424 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
S = list(input())
now = [0,0]
for s in S:
if s=="N":
now[0]+=1
elif s=="S":
now[0]-=1
elif s=="E":
now[1]+=1
else:
now[1]-=1
a = now[0]**2+now[1]**2
print(a**(1/2))
もぐら 3.0