結果
| 問題 | No.113 宝探し |
| コンテスト | |
| ユーザー |
u
|
| 提出日時 | 2018-03-13 23:46:16 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 304µs | |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2026-09-25 01:25:54 |
| 合計ジャッジ時間 | 2,231 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
from collections import Counter import math direction = input() cnt = Counter(direction) ns_dir = (cnt["N"] - cnt["S"])**2 ew_dir = (cnt["E"] - cnt["W"])**2 sqrt = math.sqrt(ns_dir + ew_dir) print(sqrt)
u