結果

問題 No.113 宝探し
ユーザー 👑 KazunKazun
提出日時 2020-11-16 04:37:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 71,852 KB
最終ジャッジ日時 2023-09-30 07:10:32
合計ジャッジ時間 3,874 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,588 KB
testcase_01 AC 76 ms
71,644 KB
testcase_02 AC 76 ms
71,600 KB
testcase_03 AC 78 ms
71,712 KB
testcase_04 AC 78 ms
71,556 KB
testcase_05 AC 75 ms
71,684 KB
testcase_06 AC 75 ms
71,712 KB
testcase_07 AC 77 ms
71,460 KB
testcase_08 AC 76 ms
71,692 KB
testcase_09 AC 76 ms
71,728 KB
testcase_10 AC 77 ms
71,568 KB
testcase_11 AC 77 ms
71,500 KB
testcase_12 AC 77 ms
71,736 KB
testcase_13 AC 77 ms
71,224 KB
testcase_14 AC 76 ms
70,924 KB
testcase_15 AC 77 ms
71,528 KB
testcase_16 AC 76 ms
71,732 KB
testcase_17 AC 77 ms
71,184 KB
testcase_18 AC 77 ms
70,924 KB
testcase_19 AC 76 ms
71,700 KB
testcase_20 AC 76 ms
71,512 KB
testcase_21 AC 76 ms
71,596 KB
testcase_22 AC 76 ms
71,676 KB
testcase_23 AC 76 ms
71,508 KB
testcase_24 AC 76 ms
71,852 KB
testcase_25 AC 76 ms
71,696 KB
testcase_26 AC 77 ms
71,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
X=Y=0

for s in S:
    if s=="N":
        Y+=1
    elif s=="E":
        X+=1
    elif s=="W":
        X-=1
    else:
        Y-=1

print((X*X+Y*Y)**0.5)
0