Pagini recente » Borderou de evaluare (job #307911) | Borderou de evaluare (job #331361) | Borderou de evaluare (job #2045364) | Borderou de evaluare (job #336071) | Borderou de evaluare (job #2264218)
Borderou de evaluare (job #2264218)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import <iostream>
^~~~~~
main.cpp: In function 'int main()':
main.cpp:2:62: 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("fetite.in","r",stdin);freopen("fetite.out","w",stdout);unsigned long long N,R,I=2;for(cin>>N;I<=N;I*=2)R=(N-I)*2+1;cout<<R;}
^
main.cpp:2:95: 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("fetite.in","r",stdin);freopen("fetite.out","w",stdout);unsigned long long N,R,I=2;for(cin>>N;I<=N;I*=2)R=(N-I)*2+1;cout<<R;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 131kb | OK | 10 |
2 | 4ms | 131kb | OK | 10 |
3 | 4ms | 131kb | OK | 10 |
4 | 4ms | 131kb | OK | 10 |
5 | 4ms | 131kb | OK | 10 |
6 | 3ms | 131kb | OK | 10 |
7 | 4ms | 131kb | OK | 10 |
8 | 3ms | 131kb | OK | 10 |
9 | 4ms | 131kb | OK | 10 |
10 | 4ms | 131kb | OK | 10 |
Punctaj total | 100 |