結果
| 問題 | 
                            No.113 宝探し
                             | 
                    
| コンテスト | |
| ユーザー | 
                             pirorirori_n712
                         | 
                    
| 提出日時 | 2018-07-21 01:18:43 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 442 bytes | 
| コンパイル時間 | 1,060 ms | 
| コンパイル使用メモリ | 109,792 KB | 
| 実行使用メモリ | 27,932 KB | 
| 最終ジャッジ日時 | 2024-12-26 04:35:37 | 
| 合計ジャッジ時間 | 2,495 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 4 | 
| other | AC * 3 WA * 20 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class No113{
    static void Main(){
        var a=Console.ReadLine();
        var x=0;
        var y=0;
        foreach(char b in a){
            switch(b){
                case 'N':++y;break;
                case 'S':--y;break;
                case 'E':++x;break;
                case 'W':--x;break;
            }
        }
        double c=0.0000;
        c=Math.Sqrt(x^2+y^2);
        Console.WriteLine("{0:f4}",c);
    }
}
            
            
            
        
            
pirorirori_n712