# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
89082 | anri | Experiments with Gorlum (IZhO13_expgorl) | C++14 | 2 ms | 256 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
long long int a,x,y,w,q,i,b,c,d,e,n=0;
string f;
int main()
{
cin>>a;
cin>>f;
cin>>w>>q;
cin>>x>>y;
i=sizeof(f);
for(c=1;c<=i;c++){
if(f[c]=='L'){
w=w-1;
}
if(f[c]=='R'){
w=w+1;
}
if(f[c]=='F'){
q=q+1;
}
if(f[c]=='B'){
q=q-1;
}
if(f[c]=='I');
}
n=max(w,x)-min(w,x);
e=max(y,q)-min(y,q);
cout<<e<<'.'<<"000000000000"<<" "<<n<<'.'<<"000000000000";
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |