| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1351891 | 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 n, m;
cin >> n >> m;
char a[n];
for (int i = 0; i < n; i++) cin >> a[i];
ll rez = 0;
for (int i = 0; i < n; i++) {
if (a[i] == 'N') rez++;
else if (a[i] == 'W') rez += 2;
else if (a[i] == 'S') rez += 3;
}
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... | ||||
