結果

問題 No.113 宝探し
ユーザー SchneeSchnee
提出日時 2019-11-21 23:52:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 127 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 29,624 KB
最終ジャッジ日時 2023-08-10 15:35:48
合計ジャッジ時間 4,878 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
29,548 KB
testcase_01 AC 126 ms
29,580 KB
testcase_02 AC 137 ms
29,584 KB
testcase_03 AC 132 ms
29,512 KB
testcase_04 AC 132 ms
29,528 KB
testcase_05 AC 134 ms
29,524 KB
testcase_06 AC 133 ms
29,488 KB
testcase_07 AC 128 ms
29,544 KB
testcase_08 AC 128 ms
29,524 KB
testcase_09 AC 125 ms
29,484 KB
testcase_10 AC 125 ms
29,440 KB
testcase_11 AC 125 ms
29,624 KB
testcase_12 AC 125 ms
29,512 KB
testcase_13 AC 125 ms
29,564 KB
testcase_14 AC 126 ms
29,484 KB
testcase_15 AC 125 ms
29,440 KB
testcase_16 AC 125 ms
29,568 KB
testcase_17 AC 126 ms
29,580 KB
testcase_18 AC 126 ms
29,400 KB
testcase_19 AC 126 ms
29,416 KB
testcase_20 AC 124 ms
29,588 KB
testcase_21 AC 126 ms
29,604 KB
testcase_22 AC 126 ms
29,508 KB
testcase_23 AC 125 ms
29,520 KB
testcase_24 AC 124 ms
29,444 KB
testcase_25 AC 125 ms
29,376 KB
testcase_26 AC 125 ms
29,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as n
a=input()
print(n.linalg.norm(n.array([a.count("E")-a.count("W"),a.count("N")-a.count("S")])-n.array([0,0])))
0