結果
問題 |
No.113 宝探し
|
ユーザー |
|
提出日時 | 2022-02-02 23:39:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-06-11 09:38:36 |
合計ジャッジ時間 | 2,192 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
import sys def input(): return sys.stdin.readline().rstrip() def main(): S = input() print(((S.count('N')-S.count('S'))**2+(S.count('E')-S.count('W'))**2)**0.5) if __name__ == '__main__': main()