Pagini recente » Borderou de evaluare (job #2766684) | Borderou de evaluare (job #2918579) | Borderou de evaluare (job #2960725) | Borderou de evaluare (job #2396712) | Borderou de evaluare (job #2340798)
Borderou de evaluare (job #2340798)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<bits/stdc++.h>
^~~~~~
main.cpp:3:201: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream s("rj.in");ofstream t("rj.out");struct P{int x,y;}p;string v;int a[101][101],b[101][101],w[]={0,-1,0,1,-1,1,1,-1,},z[]={-1,0,1,0,1,1,-1,-1},n,m,k,l,o,q,i,j;queue<P>c;main(){s>>n>>m;for(getline(s,v);i<n;++i)for(getline(s,v),j=0;j<m;++j){if(v[j]=='R')o=i+1,q=j+1;if(v[j]=='J')k=i+1,l=j+1;if(v[j]=='X')a[i+1][j+1]=b[i+1][j+1]=-1;}W(a,o,q);W(b,k,l);k=100000;for(i=1;i<n;++i)for(j=1;j<m;++j)if(a[i][j]==b[i][j]&&k>a[i][j]&&a[i][j]>0)k=a[i][j],o=i,q=j;t<<k<<" "<<o<<" "<<q;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 50 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 4ms | 262kb | OK | 10 |
5 | 4ms | 262kb | OK | 10 |
6 | 3ms | 262kb | OK | 10 | 50 |
7 | 3ms | 131kb | OK | 10 |
8 | 3ms | 262kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |