Pagini recente » Borderou de evaluare (job #573641) | Borderou de evaluare (job #1374918) | Borderou de evaluare (job #2835478) | Borderou de evaluare (job #2786363) | Borderou de evaluare (job #2034571)
Borderou de evaluare (job #2034571)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:3:63: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:97: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:125: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:222: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:401: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:416: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:465: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:607: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:622: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
user.cpp:3:671: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("hacker3.in","r",stdin);freopen("hacker3.out","w",stdout);int n,x,y,ct;scanf("%d",&n);ct=n/3;long long rez;int a[ct+5];int b[ct+5];int k=0;for(int i=1; i<=n; i++){scanf("%d%d",&x,&y);if(i>(2*ct)){k++;a[i-(2*ct)]=x;b[i-(2*ct)]=y;}}rez=min(a[k],b[k]);for(int i=k-1; i>=1; i--) rez=min(rez+b[i],2*rez+a[i]);b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1; i<=(2*ct); i++){scanf("%d%d",&x,&y);if(i>ct){a[i-ct]=x;b[i-ct]=y;}}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}b[ct+1]=rez;fclose(stdin);freopen("hacker3.in","r",stdin);scanf("%d",&n);for(int i=1;i<=ct;i++){scanf("%d%d",&a[i],&b[i]);}for(int i=ct;i>=1;i--){rez=min(rez+b[i],2*rez+a[i]);}printf("%lld",rez);}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 268kb | OK | 5 | 5 |
2 | 0ms | 260kb | OK | 5 | 5 |
3 | 0ms | 264kb | OK | 5 | 5 |
4 | 0ms | 268kb | OK | 5 | 5 |
5 | 0ms | 268kb | OK | 5 | 5 |
6 | 0ms | 268kb | OK | 5 | 5 |
7 | 0ms | 272kb | OK | 5 | 5 |
8 | 0ms | 268kb | OK | 5 | 5 |
9 | 4ms | 292kb | OK | 5 | 30 |
10 | 4ms | 288kb | OK | 5 |
11 | 4ms | 292kb | OK | 5 |
12 | 4ms | 292kb | OK | 5 |
13 | 4ms | 292kb | OK | 5 |
14 | 4ms | 288kb | OK | 5 |
15 | 60ms | 528kb | OK | 5 | 30 |
16 | 60ms | 520kb | OK | 5 |
17 | 64ms | 528kb | OK | 5 |
18 | 64ms | 524kb | OK | 5 |
19 | 60ms | 524kb | OK | 5 |
20 | 96ms | 524kb | OK | 5 |
Punctaj total | 100 |