#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef vector vvi; typedef pair pii; #define all(c) (c).begin(), (c).end() #define loop(i,a,b) for(ll i=a; iDUMP &operator,(const T&t){if(this->tellp())*this<<", ";*this<>s){ int x=0, y=0; for(char c:s){ if(c=='N')y++; if(c=='S')y--; if(c=='W')x++; if(c=='E')x--; } printf("%lf\n", sqrt(x*x+y*y)); } }