| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1351908 | jakovg | Awesome Arrowland Adventure (eJOI19_adventure) | C++20 | 1 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int m, n;
cin >> m >> n;
string s;
cin >> s;
ll rez = 0;
for (char c : s) {
if (c == 'E') continue;
else if (c == 'S') rez += 3;
else if (c == 'W') rez += 2;
else if (c == 'N') rez++;
}
cout << rez;
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
