結果
| 問題 |
No.113 宝探し
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-24 23:42:22 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 194 bytes |
| コンパイル時間 | 3,982 ms |
| コンパイル使用メモリ | 64,768 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 21:51:13 |
| 合計ジャッジ時間 | 3,937 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils, strutils, math
var
s:string = readLine(stdin)
x,y:int
y += count(s, 'N')
x += count(s, 'E')
x -= count(s, 'W')
y -= count(s, 'S')
echo sqrt(float((x * x) + (y * y)))