結果

問題 No.113 宝探し
ユーザー convexineqconvexineq
提出日時 2020-12-04 21:23:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 1,356 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 71,768 KB
最終ジャッジ日時 2023-10-13 11:03:17
合計ジャッジ時間 4,367 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,580 KB
testcase_01 AC 68 ms
71,728 KB
testcase_02 AC 70 ms
71,312 KB
testcase_03 AC 68 ms
71,576 KB
testcase_04 AC 68 ms
71,768 KB
testcase_05 AC 68 ms
71,572 KB
testcase_06 AC 68 ms
71,508 KB
testcase_07 AC 68 ms
71,456 KB
testcase_08 AC 70 ms
71,500 KB
testcase_09 AC 70 ms
71,724 KB
testcase_10 AC 70 ms
71,544 KB
testcase_11 AC 68 ms
71,756 KB
testcase_12 AC 70 ms
71,320 KB
testcase_13 AC 68 ms
71,400 KB
testcase_14 AC 70 ms
71,392 KB
testcase_15 AC 69 ms
71,548 KB
testcase_16 AC 68 ms
71,480 KB
testcase_17 AC 70 ms
71,392 KB
testcase_18 AC 68 ms
71,172 KB
testcase_19 AC 69 ms
71,768 KB
testcase_20 AC 69 ms
71,520 KB
testcase_21 AC 69 ms
71,708 KB
testcase_22 AC 68 ms
71,460 KB
testcase_23 AC 67 ms
71,224 KB
testcase_24 AC 68 ms
71,652 KB
testcase_25 AC 70 ms
71,764 KB
testcase_26 AC 70 ms
71,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d1 = dict(zip("NEWS",[1,0,0,-1]))
d2 = dict(zip("NEWS",[0,1,-1,0]))
x = y = 0
for i in input():
    x += d1[i]
    y += d2[i]
print((x*x+y*y)**0.5)
0