# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
4769 | gs13068 | Experiments with Gorlum (IZhO13_expgorl) | C++98 | 1000 ms | 1188 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<cstdio>
#include<cmath>
#include<cstring>
char str[10002];
int x[10000];
int y[10000];
int main()
{
int a,b,c,d;
int i,j,n,k;
long double min=1.0E6,max=0.0,temp;
scanf("%d%s%d%d%d%d",&k,str+1,&a,&b,&c,&d);
n=strlen(str+1);
x[0]=c-a;
y[0]=d-b;
for(i=1;i<=n;i++)
{
x[i]=x[i-1];
y[i]=y[i-1];
switch(str[i])
{
case 'L':
x[i]--;
break;
case 'R':
x[i]++;
break;
case 'F':
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |