제출 #750054

#제출 시각아이디문제언어결과실행 시간메모리
750054MuntherCarrotAwesome Arrowland Adventure (eJOI19_adventure)C++17
0 / 100
1 ms324 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define endl '\n' #define all(x) x.begin(),x.end() const ll MOD = 1e9 + 7, SZ = 1e5 + 10, INF = 1e18; int32_t main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, m; cin >> n >> m; char arr[n][m]; int ans = 0; for(auto &i : arr){ for(char &j : i){ cin >> j; if(j == 'S') ans += 3; if(j == 'W') ans += 2; if(j == 'N') ans += 1; } } cout << ans; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...