結果
| 問題 | No.113 宝探し |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-04 21:23:17 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 573 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-04 18:29:30 |
| 合計ジャッジ時間 | 2,327 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
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)
convexineq