제출 #1195828

#제출 시각아이디문제언어결과실행 시간메모리
1195828sheina906Awesome Arrowland Adventure (eJOI19_adventure)C++20
0 / 100
0 ms528 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; string s = "", t; while (n--) { cin >> t; s += t; } int ans = 0; for (char c : s) ans += (c == 'N' ? 2 : (c == 'E' || c == 'W' ? 1 : 0)); cout << ans << '\n'; 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...