結果

問題 No.113 宝探し
ユーザー SchneeSchnee
提出日時 2019-11-21 23:52:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 462 ms / 5,000 ms
コード長 127 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,540 KB
最終ジャッジ日時 2024-04-28 08:34:20
合計ジャッジ時間 15,287 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 449 ms
44,396 KB
testcase_01 AC 449 ms
44,032 KB
testcase_02 AC 460 ms
44,012 KB
testcase_03 AC 440 ms
43,900 KB
testcase_04 AC 441 ms
44,540 KB
testcase_05 AC 439 ms
44,196 KB
testcase_06 AC 450 ms
44,140 KB
testcase_07 AC 439 ms
44,020 KB
testcase_08 AC 440 ms
44,036 KB
testcase_09 AC 452 ms
44,524 KB
testcase_10 AC 439 ms
44,108 KB
testcase_11 AC 455 ms
44,028 KB
testcase_12 AC 458 ms
44,164 KB
testcase_13 AC 448 ms
44,412 KB
testcase_14 AC 455 ms
44,148 KB
testcase_15 AC 462 ms
44,140 KB
testcase_16 AC 450 ms
44,288 KB
testcase_17 AC 451 ms
44,016 KB
testcase_18 AC 442 ms
44,532 KB
testcase_19 AC 447 ms
44,012 KB
testcase_20 AC 455 ms
43,900 KB
testcase_21 AC 451 ms
44,288 KB
testcase_22 AC 445 ms
43,904 KB
testcase_23 AC 442 ms
44,412 KB
testcase_24 AC 445 ms
43,888 KB
testcase_25 AC 443 ms
44,284 KB
testcase_26 AC 452 ms
44,156 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